Liquid Glass Studio

Tune glass effects. Copy code for your project.

Presets:

Drag the sample to see the glass over different colors

How the effect works (in plain words)

1. Frosting: backdrop-filter

The glass blurs and saturates whatever is behind it, not itself. One line of CSS does the frosting: backdrop-filter: blur(16px) saturate(160%). The effect needs content behind the panel. The moving colors in the preview make the blur easier to see.

2. Glass body: translucent tint

A semi-transparent background color is the glass tint. Raise its alpha for a more opaque, milkier fill.

3. Light edges: inset shadows

Thin inset white shadows on top and bottom fake the way a real glass edge catches light. That 1-pixel highlight is what makes it feel "solid" instead of flat.

4. Refraction: SVG displacement (optional)

I approximate edge refraction with an SVG feDisplacementMap filter referenced from backdrop-filter: url(#…). It is optional. The blur, tint, and edge light work without it.