Skip to main content

Animation Delay

Set how long an animation waits before it starts.

View as Markdown
baselinewidely

Variants

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

Breakpoints

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

@xs:ad:500From 32rem up.
@sm:ad:500From 40rem up.
@md:ad:500From 48rem up.
@lg:ad:500From 64rem up.
@xl:ad:500From 80rem up.
@xxl:ad:500From 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:ad:500Container from 32rem up.
@c:sm:ad:500Container from 40rem up.
@c:md:ad:500Container from 48rem up.
@c:lg:ad:500Container from 64rem up.
@c:xl:ad:500Container from 80rem up.
@c:xxl:ad:500Container 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:ad:500On a touch screen.
@prm:ad:500With reduced motion on.
@st:ad:500On the first frame.

States

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

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

Pseudo Elements

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

a::ad:500On ::after.
b::ad:500On ::before.
p::ad:500On ::placeholder.
s::ad:500On ::selection.