How to use Glassmorphism Generator
A glass surface combines a translucent fill with a filtered backdrop. The effect needs varied content behind the element; blur cannot reveal detail on a flat background.
- Choose the surface color and opacity. Lower opacity shows more of the background and can reduce text contrast.
- Backdrop blur affects pixels behind the surface, not its own text. Border opacity adds a faint edge, and corner radius sets the shape in pixels.
- Place the surface above an image, gradient or layered content. Provide a readable solid fallback in your real stylesheet for browsers without backdrop-filter support.
A practical starting point
A translucent caption needs enough fill to remain readable over bright and dark image regions.
background: rgb(255 255 255 / 0.72); backdrop-filter: blur(16px); border: 1px solid rgb(255 255 255 / 0.5);
Common mistakes
- Backdrop blur does not blur the element’s children. filter: blur() is a different property.
- Large continuously moving blur surfaces can cost rendering time. Test on a modest mobile device.
Frequently asked questions
Why include the WebKit prefix?
The prefixed declaration supports Safari versions that require it; browsers supporting the standard property use that declaration.