1/* Answer to "blur behind element css" */
2
3/*
4 This blurs everything behind the element it's applied to
5*/
6
7backdrop-filter: blur(10px);
1/* Keyword value */
2backdrop-filter: none;
3
4/* URL to SVG filter */
5backdrop-filter: url(commonfilters.svg#filter);
6
7/* <filter-function> values */
8backdrop-filter: blur(2px);
9backdrop-filter: brightness(60%);
10backdrop-filter: contrast(40%);
11backdrop-filter: drop-shadow(4px 4px 10px blue);
12backdrop-filter: grayscale(30%);
13backdrop-filter: hue-rotate(120deg);
14backdrop-filter: invert(70%);
15backdrop-filter: opacity(20%);
16backdrop-filter: sepia(90%);
17backdrop-filter: saturate(80%);
18
19/* Multiple filters */
20backdrop-filter: url(filters.svg#filter) blur(4px) saturate(150%);
21
22/* Global values */
23backdrop-filter: inherit;
24backdrop-filter: initial;
25backdrop-filter: unset;
1.foreground {
2 backdrop-filter: blur(10px);
3}
4
5/* can be any one of the following:
6blur()
7brightness()
8contrast()
9drop-shadow()
10grayscale()
11hue-rotate()
12invert()
13opacity()
14saturate()
15sepia()
16url() – (for applying SVG filters)
17*/