clip and mask using circle css

hi , am facing a challenge in designing above attachment. I am able to design the card but the circular design at center is challenging. please guide me.
No description
10 Replies
vince
vince•2y ago
You mean the notches?
MarkBoots
MarkBoots•2y ago
you can use radial-gradient mask-images small example https://codepen.io/MarkBoots/pen/RwvWgdd for the top part i have 2 radialgradients on bottom left and bottom right corner for the bottom part the 2 radialgradient on top left and top right corner
vince
vince•2y ago
This doesn't work on FF for me
MarkBoots
MarkBoots•2y ago
wait maybe i forgot something
vince
vince•2y ago
I think it needs to be prefixed on FF
MarkBoots
MarkBoots•2y ago
yea i did, trying to figure out why its not okay yet it works now, webkit didnt like the mask shorthand property
vince
vince•2y ago
🥳 great solution
capt_uhu
capt_uhu•2y ago
FYI, mask has been good to go un-prefixed in Firefox for about 7 years. Chrome and Safari are finally working on fixing their implementations as part of Interop 2023
MarkBoots
MarkBoots•2y ago
yea, thought so too, think i made another little error before. don't know what it was, but it's fixed
RaviTeja
RaviTejaOP•2y ago
Great solution , Thanks @MarkBoots

Did you find this page helpful?