Skip to main content

Blur

Set the blur filter for an element.

View as Markdown
baselinewidely
ClassCSS
f-b:nonefilter: blur();
f-b:xsfilter: blur(4px);
f-b:smfilter: blur(8px);
f-b:mdfilter: blur(16px);
f-b:lgfilter: blur(32px);
f-b:xlfilter: blur(64px);

Variants

Prefix any class with a variant to apply it only under that condition. Variants stack, as in @md:h:f-b:md.

Breakpoints

Apply a class from a viewport width up. Each breakpoint covers its width & every width above it.

@xs:f-b:mdFrom 32rem up.
@sm:f-b:mdFrom 40rem up.
@md:f-b:mdFrom 48rem up.
@lg:f-b:mdFrom 64rem up.
@xl:f-b:mdFrom 80rem up.
@xxl:f-b:mdFrom 96rem up.

Containers

Apply a class from a container's width up, not the viewport's. Mark the parent with ct:is first.

@c:xs:f-b:mdContainer from 32rem up.
@c:sm:f-b:mdContainer from 40rem up.
@c:md:f-b:mdContainer from 48rem up.
@c:lg:f-b:mdContainer from 64rem up.
@c:xl:f-b:mdContainer from 80rem up.
@c:xxl:f-b:mdContainer from 96rem up.

Media

Apply a class when the device or the page matches a condition, or on the first frame an element renders.

@pc:f-b:mdOn a touch screen.
@prm:f-b:mdWith reduced motion on.
@st:f-b:mdOn the first frame.

States

Apply a class only while the element is in a state, such as hovered, focused or checked.

h:f-b:mdOn :hover.
f:f-b:mdOn :focus.
fv:f-b:mdOn :focus-visible.
a:f-b:mdOn :active.
d:f-b:mdOn :disabled.
fc:f-b:mdOn :first-child.
c:f-b:mdOn :checked.
e:f-b:mdOn :empty.
fw:f-b:mdOn :focus-within.
i:f-b:mdOn :invalid.
in:f-b:mdOn :indeterminate.
lc:f-b:mdOn :last-child.
nc:f-b:mdOn :nth-child.
r:f-b:mdOn :required.
ro:f-b:mdOn :read-only.
v:f-b:mdOn :valid.

Pseudo Elements

Style a part of the element rather than the element itself, such as its placeholder or the selected text.

a::f-b:mdOn ::after.
b::f-b:mdOn ::before.
p::f-b:mdOn ::placeholder.
s::f-b:mdOn ::selection.