有人能给予我一个建议,如何完成这个形状看起来像在图片?
我试着玩弄价值观,但这就是我所拥有的。
.custom-shape {
position: absolute;
top: 61px;
left: 0;
width: 100%;
overflow: hidden;
display: flex;
justify-content: center;
line-height: 0;
transform: rotate(360deg);
/* transform: scaleX(-1); */
}
.custom-shape svg {
border-radius: 5px;
width: calc(94% + 1.5px);
height: 100px;
transform: scaleY(-1);
margin-left: auto;
margin-right: auto;
}
.custom-shape .shape-fill {
fill: #6CC57C;
}
.shape-fill-light {
fill: rgba(108, 197, 124, 0.5);
}
<div class="custom-shape">
<svg data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" viewBox="10 0 1110 100" preserveAspectRatio="none">
<path d="M985.6,92.83C906,72,823,31,743,14.19c-82.26-17.34-168.06-16.33-250.45.39-57.84,11.73-114,31.07-172,41.86A600.21,600.21,0,0,1,0,27.35V200H1200V95.8C1132.19,118.92,1055.71,111.31,985.66,92.83Z" class="shape-fill"></path>
<path d="M900,92.83C806,72,723,31,643,14.19c-82.26-17.34-168.06-16.33-250.45.39-57.84,11.73-114,31.07-172,41.86A600.21,600.21,0,0,1,0,27.35V120H1200V95.8C1132.19,118.92,1055.71,111.31,985.66,92.83Z" class="shape-fill-light"></path>
</svg>
</div>
1条答案
按热度按时间hjzp0vay1#