如何获得这样的剪辑路径
How to get a clip path like this
我一直在寻找一个剪辑路径生成器来获得如下图所示的剪辑路径,但我找不到任何有用的东西。有没有工具可以做到这一点?我使用了 (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>
尝试使用 clip-path 中的这些路径并获得更多帮助 responsive clip path
我一直在寻找一个剪辑路径生成器来获得如下图所示的剪辑路径,但我找不到任何有用的东西。有没有工具可以做到这一点?我使用了 (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>
尝试使用 clip-path 中的这些路径并获得更多帮助 responsive clip path