CSS Backdrop Filter Glass Effect
Create frosted glass morphism effects using CSS backdrop-filter with blur and saturation for modern UI design.
Code
.glass {
background: rgba(255, 255, 255, 0.7);
backdrop-filter: blur(10px) saturate(180%);
border: 1px solid rgba(255, 255, 255, 0.3);
border-radius: 12px;
}CSS Backdrop Filter Glass Effect
Create frosted glass morphism effects using CSS backdrop-filter with blur and saturation for modern UI design.
Code
.glass {
background: rgba(255, 255, 255, 0.7);
backdrop-filter: blur(10px) saturate(180%);
border: 1px solid rgba(255, 255, 255, 0.3);
border-radius: 12px;
}
Explanation
The panel blurs and saturates whatever sits behind it, producing a frosted-glass look. Expected behavior: the effect is applied only where the element paints a translucent background, so overlaid text stays legible. Caveat: browsers without backdrop-filter support fall back to the flat background, so always keep a readable solid fallback behind the glass.
Interactive Tools for This Topic
Aspect Ratio CalculatorSimplify a width-to-height ratio, show its decimal value, and derive a matching height for a new width.Border Radius PreviewPreview four-corner border-radius values on a live box and copy the generated shorthand border-radius CSS declaration.Box Shadow GeneratorBuild CSS box-shadow values with offset, blur, spread, color, opacity, and inset controls, with a live preview of the result.CSS Color Name LookupTranslate between CSS keyword color names and hex values with RGB and HSL conversions, exact name matching, and nearest-color suggestions.
Report a problem with this exampleOpens a pre-filled issue on GitHub.