效果图,具体细节可以自己调一下
<div class="content">
<div class="nav"></div>
<div class="line"></div>
<div class="nav"></div>
</div>
.content {
display: flex;
align-items: baseline;
}
.nav {
position: relative;
padding: 20px 10px 0;
text-decoration: none;
display: inline-block;
width: 80px;
}
.nav::after {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: #fff;
border: 1px solid #ededed;
border-bottom: none;
border-radius: 15px 15px 0 0;
box-shadow: 3px -3px 5px #ededed;
transform: perspective(10px)scale(1.1, 1.3) rotateX(5deg);
z-index: -1;
}
.line {
width: 150px;
background: #ededed;
height: 1px;
box-shadow: 2px 0 3px #ededed;
transform: translate(0px, 4px);
z-index: -999;
}
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…