Syntax

animation-iteration-count

Setting the number of times an animation should be played.

Overview

ClassDeclarations
@iteration:valueanimation-iteration-count: value;
@iteration:infiniteanimation-iteration-count: infinite;

Simplify the native syntax using the derived symbol.

<div class="@iteration:infinite"> <div class="animation-iteration-count:infinite">

Basic usage

Loop animation

Play the animation in an infinite loop.

<svg class="@iteration:infinite @rotate|1s|linear">…</svg>

Specify N iterations

Specifies the number of times the animation iterates, even decimals.

Hover over the icon to see animation iterations

<svg class="@iteration:2.5:hover @rotate|1s|linear|forwards:hover">…</svg>

Conditionally apply

Apply styles based on different states using selectors and applying conditionally.

<div class="@iteration:infinite:hover @iteration:infinite@sm @iteration:infinite@dark @iteration:infinite@print">…</div>
Syntax
animation-fill-mode

Setting how a CSS animation applies styles to its target before and after its execution.

Syntax
animation-name

Setting the names of the animation.

© Aoyue Design LLC.