Skip to content
Jellykit

Glassmorphism Generator

Create frosted-glass card CSS with backdrop blur, saturation, tint, a light edge and a soft shadow, including the prefixed property some browsers need.

  • Runs on your device
Loading tool

About Glassmorphism Generator

Glassmorphism is a translucent panel that blurs whatever sits behind it, like frosted glass over a colorful scene. Adjust the blur, how much the backdrop is saturated, the tint and its opacity, a thin light edge and a shadow, and watch a card over colorful shapes update as you go.

The CSS includes the -webkit- prefixed backdrop-filter that Safari still needs, and a fallback for browsers that cannot blur, which makes the tint more opaque so text on the card stays readable.

How it works

  1. The glass is a semi-transparent background color plus backdrop-filter, which blurs and saturates the pixels behind the element before its own background is painted on top.
  2. Both backdrop-filter and -webkit-backdrop-filter are written with the same value, because Safari still expects the prefixed name. Filters that would do nothing are left out.
  3. An @supports block raises the tint to at least 80% opacity in browsers without backdrop-filter, so the card does not become a nearly clear box over busy content.
  4. The backdrop colors only change the preview scene. They are not part of the copied CSS.

Questions

Why can I not see any blur?

The blur only shows where something sits behind the element. Over a plain color there is nothing to blur. Put the card over an image, a gradient or other content. If your browser cannot draw backdrop-filter at all, the tool says so under the preview.

Is backdrop-filter expensive?

It costs more than a plain background because the browser re-blurs the area behind the element whenever it changes. A few cards are fine; avoid it on large areas that scroll over moving content on low-end phones.

Will text on the glass be accessible?

That depends on what is behind it, which the CSS cannot know. Check contrast against the busiest part of your backdrop, and raise the tint opacity or the blur if text is hard to read.

Everything you enter here is processed in this browser tab. Nothing is uploaded, logged or shared. How privacy works here.