Blur
Applies a blur filter to an element.
Widely available
This feature is well established and works across many devices and browser versions.
Chrome
Edge
Firefox
Safari
| Class | Style |
|---|---|
f-b-none | filter: blur(0px); |
f-b-xs | filter: blur(4px); |
f-b-sm | filter: blur(8px); |
f-b-md | filter: blur(16px); |
f-b-lg | filter: blur(32px); |
f-b-xl | filter: blur(64px); |
This example showcases various blur utilities:
- The f-b-none blur utility sets the
filterto blur(0px). - The f-b-xs blur utility sets the
filterto blur(4px).
<div class="d-g g-16 gtc-2"> <div class="d-32 p-r"> <img class="d-full f-b-none of-c bs-c" src="/img/mountain.jpg" /> </div> <div class="d-32 p-r"> <img class="d-full f-b-xs of-c bs-c" src="/img/mountain.jpg" /> </div></div>Using utility variants
Learn how to override existing utilities based on the user's screen size or other factors, such as hover states.
Targeting different viewports
You can combine responsive breakpoints like sm:f-b-*, md:f-b-*, lg:f-b-*, and xxl:f-b-* to allow targeting specific utilities in different viewports.
Targeting hover states
Alternatively, you can apply :hover by using h:f-b-* utility to override elements and change their values when hovering over them.