Skip to main content

Animation Iteration Count

Set how many times an animation runs.

View as Markdown
baselinewidely
ClassCSS
aic:1animation-iteration-count: 1;
aic:2animation-iteration-count: 2;
aic:3animation-iteration-count: 3;
aic:infanimation-iteration-count: infinite;

Variants

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

Breakpoints

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

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

States

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

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

Pseudo Elements

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

a::aic:3On ::after.
b::aic:3On ::before.
p::aic:3On ::placeholder.
s::aic:3On ::selection.