Design guides

See What a CSS Filter Does Behind a Glass Panel

·

Use a built-in striped scene to test what the panel samples. Change tint transparency and toggle the effect on the same background before deciding which declaration to put on your own panel.

Backdrop Filter Generator

Reveal the pattern through the panel

Choose Fine vertical lines. Keep the default Blur at 12 px and Saturation at 135%. Use rgba(241, 245, 237, .5) for Glass tint and set Tint opacity to 40%. The resulting panel alpha is 0.2 because the two alpha values multiply.

Uncheck Show filters in preview. The lines under the panel appear sharply defined. Check it again to soften the lines under the panel while the pattern outside the panel and the foreground label keep their edges.

CSS Filter Effects Level 2 backdrop-filter and backdrop rootsCSS Color 4 sRGB functions and alpha

Put contrast before or after saturation

Choose Contrast under Function to add and select Add function. In the third row, set Contrast to 110%, then use Move function 3 up. The generated order is blur(12px) contrast(110%) saturate(135%).

Try Color blocks before and after this change. The order matters because each function reads the previous one’s result. Keep the order you tested in the final stylesheet.

CSS Filter Effects Level 2 backdrop-filter and backdrop rootsCSS Filter Effects Level 1 filter functions

Inspect the panel in its destination

Download the CSS, apply the backdrop-panel class to a panel over existing content and confirm a visible backing scene. The stylesheet contains both declarations when Include WebKit declaration is selected.

If the backing scene seems flat, look for a fully opaque fill or a parent blending group that changes what the panel can sample. Keep the foreground text legible if the filter is unavailable.

CSS Filter Effects Level 2 backdrop-filter and backdrop roots

Common questions

Why does the exported class include a background color?

The translucent color tints the sampled backdrop and supplies a surface even in a browser that ignores the filter.

Does the Show filters in preview checkbox change my CSS?

It only changes the comparison view. Remove all functions when you want the stylesheet to export backdrop-filter: none.

Sources

Put it into practice.

Related guides