DEV Community

Cover image for Most fast create card with Glassmorphism effect
Matheus Maximiliano
Matheus Maximiliano

Posted on

5 3

Most fast create card with Glassmorphism effect

Lest go, this tutorial are very fast, to you create a very beautiful card using grassmorphism effect with css, in your project! 💥

We have 3 steps to create this card. 🧾

1. Create our structure, so can create with HTML, or React with JSX/TSX, so, wherever technology that you use to create, make this.

In my exemple, I use HTML.

Card HTML

2. now, lets go create our css

For this, we need attention for 2 things

⚠ The footer element receive our grassmorphism effect, so, this it need a opacity in your background-color for you can see the effect.

⚠ For opacity I used direct in HEX code color, like this #fafafa77 this 77 is like a opacity in HEX, test after you create this card.

For your header we create this code.

Header card CSS

And for footer this code.

Footer card CSS

🚀 NICE, we create the beautiful card with glassmorphism effect, and if you lets create another element with this effect, use the code:

backdrop-filter:blur(1rem)
Enter fullscreen mode Exit fullscreen mode

And don't forgot to opacity in element that have received this effect.

Finality this is our result!

Card with glassmorphism

.
.
.
.
.
From post in PT-BR
Instagram: @imatheus.max
Post: https://www.instagram.com/p/Cdlk5fTAWEy/

Sentry image

See why 4M developers consider Sentry, “not bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay