<div class="bg">
<img class="img-polygon03" src="https://www.eyesofc.co.jp/webeyes/_demo/torarin/202104/sample.jpg" alt="サンプル画像">
</div>
.bg {
width: 220px;
max-height: 220px;
background-color: #003366;
}
img {
width: 200px;
height: 200px;
}
.img-polygon03 {
clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.