DEV Community

SumantaWeb
SumantaWeb

Posted on

2

How To Glass Morph (Only CSS)!!

The Things you need are simple..

A Good Background Image(to be blurred)
Some HTML Code..

So The Thing Which needs to be glassmorphed give it a class(eg. glassMorphism);

Then Style it..
After The Style giving it a border radius(transparent);

then paste this code--

"
background-color: rgba(255, 255, 255, 0.3);
backdrop-filter: blur(5px);

"

Done!!
*Remember : It Should Have Padding.
Then you can change blur and color as you like.

Top comments (4)

Collapse
 
pachverb profile image
new/bird

what that means ?

Collapse
 
sumanta_thefrontdev profile image
SumantaWeb

Well Do you Want to know what is glassmorphism??

Collapse
 
pachverb profile image
new/bird

yes

Thread Thread
 
sumanta_thefrontdev profile image
SumantaWeb

Google it. It's a cool effect

AI Agent image

How to Build an AI Agent with Semantic Kernel (and More!)

Join Developer Advocate Luce Carter for a hands-on tutorial on building an AI-powered dinner recommendation agent. Discover how to integrate Microsoft Semantic Kernel, MongoDB Atlas, C#, and OpenAI for ingredient checks and smart restaurant suggestions.

Watch the video 📺

👋 Kindness is contagious

Engage with a wealth of insights in this thoughtful article, valued within the supportive DEV Community. Coders of every background are welcome to join in and add to our collective wisdom.

A sincere "thank you" often brightens someone’s day. Share your gratitude in the comments below!

On DEV, the act of sharing knowledge eases our journey and fortifies our community ties. Found value in this? A quick thank you to the author can make a significant impact.

Okay