How can I crop a image with a border-radius of 56px when hover?
Like this
(just mine I want to have a css defined border of 56px)
How can I crop a image with a border-radius of 56px when hover?
Like this
(just mine I want to have a css defined border of 56px)
2
Answers
Use clip-path:
unforetunately, i think you cannot do that. cause
border-radius
defined the rounds angle. you can crop your picture to be circle or ellipse or something like that. but to be corped in that way. probaly i dont think that’s possible.but you can do so using
clip
orclip-path
or both if i remember.there is online sites would help you to crop your pic with that element, they will generate the value for you, in case you didn’t understand that property well (like me). or also if you want complex shapes.