问题描述
我一直在寻找一个剪切路径生成器来获取一个剪切路径,如下图所示,但是我找不到任何有用的东西。有什么工具可以做到这一点吗?我使用(https://bennettfeely.com/clippy/),但在我的情况下不起作用。 Here is the image
解决方法
main{
background-color:silver;
width: 400px;
}
.clip{
background-color: #5dafe8;
padding: 50px;
width: 300px;
margin: 0 auto;
height: 300px;
clip-path: polygon(0% 100%,100% 100%,100% 0,85% 7%,74% 11%,58% 15%,46% 17%,35% 18%,19% 19%,8% 19%,0 18%,0 33%);
display: flex;
flex-direction: row;
align-items: center;
justify-content: center;
}
.child {
padding: 10px;
width: 50px;
background-color: #d2f2f9;
height: 50px;
}
.clip > .child {
margin: 10px 10px 10px 0;
}
<main>
<div class="clip">
<span class="child"></span>
<span class="child"></span>
<span class="child"></span>
<span class="child"></span>
</div>
</main>
在剪切路径中试用这些路径,并获得更多帮助,请访问responsive clip path