Backdrop Grayscale

Apply a grayscale filter to the area behind an element.

Newly available

This feature works across the latest devices and browser versions. This feature might not work in older devices or browsers.

Chrome
Edge
Firefox
Safari

bf-g-0
backdrop-filter: grayscale(0%);
bf-g-10
backdrop-filter: grayscale(10%);
bf-g-20
backdrop-filter: grayscale(20%);
bf-g-30
backdrop-filter: grayscale(30%);
bf-g-40
backdrop-filter: grayscale(40%);
bf-g-50
backdrop-filter: grayscale(50%);
bf-g-60
backdrop-filter: grayscale(60%);
bf-g-70
backdrop-filter: grayscale(70%);
bf-g-80
backdrop-filter: grayscale(80%);
bf-g-90
backdrop-filter: grayscale(90%);
bf-g-100
backdrop-filter: grayscale();

Responsiveness

Use breakpoint prefixes to target different screen sizes.

sm:bf-g-(value)
Small640px
md:bf-g-(value)
Medium768px
lg:bf-g-(value)
Large1024px
xxl:bf-g-(value)
Extra Large1536px

Hover State

Apply styles conditionally on hover using the h: prefix.

Add the h: prefix to apply styles only when the user hovers over the element.

Syntax:h:bf-g-(value)