Skip to main content

Animation Duration

Set how long one cycle of an animation takes.

View as Markdown
baselinewidely

Variants

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

Breakpoints

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

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

States

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

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

Pseudo Elements

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

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