答案 0 :(得分:1)
您实际上并不需要剪切路径或蒙版。具有边界半径的偏斜变换可以做到这一点:
.box {
margin:50px;
border-radius:80px 0;
height:300px;
background:red;
position:relative;
background:url(https://i.stack.imgur.com/rYeuk.jpg) center/cover;
transform:skewY(-7deg);
transform-origin:right;
overflow:hidden;
}
.box::before {
content:"";
position:absolute;
background:inherit;
top:-20%;
left:0;
right:0;
bottom:-20%;
transform:skewY(7deg);
}
body {
background:red;
}
<div class="box">
</div>