How can I clip image with an outline?
I am using the guide from here.
css:
clip-polygon {
clip-path: polygon(5% 5%, 100% 0%, 100% 75%, 75% 75%, 75% 100%, 50% 75%, 0% 75%);
border: 10px solid red;
}
HTML:
<img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/3/Harry-Potter-1-.jpg" alt="" class="clip-polygon">
Result:
It the border/ outline does not follow the clipped shape at all.
Is it achievable?
Also, how can I clip with more curved like pebbles, something like: