CSS backdrop-filter Property
Example
div.transbox {
background-color: rgba(255, 255, 255, 0.5);
-webkit-backdrop-filter: blur(10px);
backdrop-filter: blur(10px);
}
Hello World!
Meaning
The backdrop-filter CSS property lets you apply graphical effects such as blurring or color shifting to the area behind an element.
Because it applies to everything behind the element, to see the effect you must make the element or its background at least partially transparent.
Default value: | none |
Inherited: | No |
Animatable: | No |
Version: | CSS |
JavaScript syntax: |
|
Standard Syntax
backdrop-filter: none|filter|initial|inherit|revert|revert-layer|unset;
Browser Support
The numbers in the table specify the first browser version that fully supports the property.
Status
Property Values
The following table describes the values of this property.
Value | Description |
---|---|
none | No filter is applied to the backdrop. |
filter | A space-separated list of filter-functions like:
|
initial | Sets this property to its default value. |
inherit | If specified, the associated element takes the computed value of its parent element animation-delay property. |
revert | Reverts the cascaded value of the property from its current value to the value the property |
revert-layer | Rollback styles to the ones specified in previous cascade layers. |
unset | Resets a property to its inherited value if the property naturally inherits from its parent, and to its initial value if not. |
Default CSS Property Values
selectors {
backdrop-filter: none;
}