DEV Community

Discussion on: How to create a notification badge with CSS ?

Collapse
 
afif profile image
Temani Afif

You can also rely on mask to have transparency, related: stackoverflow.com/a/51377952/8620333

Collapse
 
murtuzaalisurti profile image
Murtuzaali Surti

Sure, but I think this is the easy way!

Collapse
 
murtuzaalisurti profile image
Murtuzaali Surti

This is great! But I tried to make it as simple as possible.

Collapse
 
murtuzaalisurti profile image
Murtuzaali Surti

Great!

Collapse
 
grahamthedev profile image
GrahamTheDev

You ok buddy...you are recommending SVG! 😜😂

Collapse
 
afif profile image
Temani Afif

not really, the question was initially using SVG so I gave the proper solution with SVG and then I added the CSS mask solution to show that it's also easy with CSS ;)

Thread Thread
 
grahamthedev profile image
GrahamTheDev

Phew, for a second there I was going to call someone to come and check on you! 😜

Thread Thread
 
thefuckergithub profile image
thefuckergithub

lol

Thread Thread
 
thefuckergithub profile image
thefuckergithub

olo

Collapse
 
nikhil27b profile image
Nikhil Bobade

CSS is better option for me

Collapse
 
louislow profile image
Louis Low • Edited

Can be easily done it with Yogurt CSS.