CSS backdrop-filter Property
Applies graphical effects to the area behind an element for frosted-glass effects
Syntax
backdrop-filter: none | <filter-function>+;Values
| Value | Description |
|---|---|
| none | No backdrop filter (default) |
| blur(8px) | Frosted glass effect |
| blur(16px) saturate(180%) | Enhanced blur with saturation |
| brightness(0.8) blur(4px) | Dimmed blur |
Example
.glass-card {
background: rgba(24, 24, 27, 0.6);
backdrop-filter: blur(12px) saturate(150%);
border: 1px solid rgba(255, 255, 255, 0.1);
}Understanding CSS backdrop-filter
The CSS backdrop-filter property applies graphical effects to the area behind an element for frosted-glass effects. As part of the Filter & Effects module in CSS, it is one of the most commonly used properties for controlling the visual presentation of web pages.
You can set backdrop-filter to values such as none, blur(8px), blur(16px) saturate(180%), brightness(0.8) blur(4px), among others. Each value changes how the browser renders the affected element, giving you fine-grained control over your page layout and design. Choosing the right value depends on the specific design requirements of your project.
Common use cases for the backdrop-filter property include responsive web design, component-based layouts, and creating visually consistent interfaces across devices. It works closely with related properties like filter, background, opacity to achieve complex styling effects. Understanding how these properties interact helps you write cleaner, more maintainable stylesheets.
Browser support for backdrop-filter is excellent across all modern browsers including Chrome, Firefox, Safari, and Edge. For older browsers, consider using fallback values or progressive enhancement strategies. The property can also be set dynamically via JavaScript using element.style.backdropFilter or the CSS custom properties (variables) approach for theming.
Related Properties
Explore More CSS Properties
Browse our complete reference of 251 CSS properties with syntax, examples, and tips.