Backdrop Blur

Set the backdrop blur filter for 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

Usage

sm
md
lg
<div class="d-g g-16 gtc-1 sm:gtc-3">
<div class="p-r w-32 h-32">
<img class="of-c w-full h-full" src="/img/mountain.jpg" />
<div class="d-f i-0 p-a ai-c jc-c w-22 h-22 m-auto c-white bf-b-sm">sm</div>
</div>
<div class="p-r w-32 h-32">
<img class="of-c w-full h-full" src="/img/mountain.jpg" />
<div class="d-f i-0 p-a ai-c jc-c w-22 h-22 m-auto c-white bf-b-md">md</div>
</div>
<div class="p-r w-32 h-32">
<img class="of-c w-full h-full" src="/img/mountain.jpg" />
<div class="d-f i-0 p-a ai-c jc-c w-22 h-22 m-auto c-white bf-b-lg">lg</div>
</div>
</div>

Responsiveness

Use breakpoint prefixes to target different screen sizes. Styles apply from the breakpoint & up.

Target viewport sizes with breakpoint prefixes.

sm:bf-b-*
Small640px
md:bf-b-*
Medium768px
lg:bf-b-*
Large1024px
xxl:bf-b-*
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-b-*

Negative Values

Use negative variants to apply negative backdrop blur values.

Use the -- syntax to apply negative numeric values.

Syntax:bf-b--*