hey, can anyone help me achieve this border design using the css clip property

I have an image, and I would like to have this shape (a semi circle or a triangle on the right or left border) of the image
9 Replies
Chris Bolson
Chris Bolson16mo ago
You may have to give more details, maybe an image of what you want to achieve. For example: Do you want the shape to be within the image from the border? Or should the shape "extend" from the image? In the meantime I have created a quick codepen using clippath to "add" a triangle to the right-hand side of the image https://codepen.io/cbolson/pen/RwqyMQR I don't know if it is the sort of thing you were after.
oz
oz16mo ago
sorry, I forgot to attach the image of the shape I was trying to recreate
oz
oz16mo ago
just trying to clip a semi circle on the right border of the image itself
Tamimul Islam
Tamimul Islam16mo ago
Lightshot
Screenshot
Captured with Lightshot
oz
oz16mo ago
thanks buddies, appreciate your help that's exactly what I was looking for
Mannix
Mannix16mo ago
just as a heads up for Chris's solution to work on chromium browsers you need to add -webkit prefix
Chris Bolson
Chris Bolson16mo ago
true - I had that but removed it. I have added it back in 👍
Want results from more Discord servers?
Add your server