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 Bolson2y 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
ozOP2y ago
sorry, I forgot to attach the image of the shape I was trying to recreate
oz
ozOP2y ago
just trying to clip a semi circle on the right border of the image itself
Tamimul Islam
Tamimul Islam2y ago
Lightshot
Screenshot
Captured with Lightshot
oz
ozOP2y ago
thanks buddies, appreciate your help that's exactly what I was looking for
Mannix
Mannix2y ago
just as a heads up for Chris's solution to work on chromium browsers you need to add -webkit prefix
Chris Bolson
Chris Bolson2y ago
true - I had that but removed it. I have added it back in 👍
Want results from more Discord servers?
Add your server