CSS backdrop-filter property
Example
Add graphic effects to the area behind an element:
.box
{
background-color:
rgba
(
255
,
255
,
255
,
0.3
)
;
border-radius:
5
px
;
font-family:
sans-serif
;
text-align:
center
;
line-height:
1
; -
webkit-backdrop-filter:
blur
(
10
px
)
;
backdrop-filter:
blur
(
10
px
)
;
max-width:
50
%
;
max-height:
50
%
;
padding:
20
px
40
px
;
}
Try it »
Browser support
The numbers in the table indicate the first browser version that supports this property.
A number immediately before -webkit-, -ms-, or -moz- indicates the first browser version that supports that prefixed property.
| property | |||||
|---|---|---|---|---|---|
| backdrop-filter | 76 | 17 | 103 | 9.0 | |
| -webkit- | 63 |
Tag Definition and Usage Notes
The backdrop-filter CSS property lets you add graphic effects (such as blur or color shifts) to the area behind an element.
Because it applies to everything behind the element, the element or its background must be at least partially transparent for the effect to be visible.
Syntax
backdrop-filter:
| Value | Description |
|---|---|
| none | No filter is applied to the background. |
| A space-separated list of filter functions ( |
/* keyword value */
backdrop-filter
:
none
;
/* URL pointing to an SVG filter */
backdrop-filter
:
url
(
commonfilters
.svg
#filter
)
;
/*
backdrop-filter
:
blur
(
2px
)
;
backdrop-filter
:
brightness
(
60%
)
;
backdrop-filter
:
contrast
(
40%
)
;
backdrop-filter
:
drop-shadow
(
4px
4px
10px
blue
)
;
backdrop-filter
:
grayscale
(
30%
)
;
backdrop-filter
:
hue-rotate
(
120deg
)
;
backdrop-filter
:
invert
(
70%
)
;
backdrop-filter
:
opacity
(
20%
)
;
backdrop-filter
:
sepia
(
90%
)
;
backdrop-filter
:
saturate
(
80%
)
;
/* multiple filters */
backdrop-filter
:
url
(
filters
.svg
#filter
)
blur
(
4px
)
saturate
(
150%
)
;
/* global values */
backdrop-filter
:
inherit
;
backdrop-filter
:
initial
;
backdrop-filter
:
revert
;
backdrop-filter
:
unset
;