Skip to main content

Utility Classes

These are classes that affect how the animation is applied or will run.

Duration

These classes provide a shorthand way to set the animation-duration CSS property.

The initial duration that these classes are based on is set by the --simple-animation-duration CSS variable, which defaults to 1s. Changing this variable will change the duration of all animations that use these classes.

The duration column in the table below assumes the --simple-animation-duration variable is set to 1s.

Class NameDuration
sa-duration-half0.5s
sa-duration-third0.33s
sa-duration-quarter0.25s
sa-duration-double2s
sa-duration-triple3s
sa-duration-quadruple4s

Delay

These classes provide a shorthand way to set the animation-delay CSS property.

The initial delay that these classes are based on is set by the --simple-animation-delay CSS variable, which defaults to 1s. Changing this variable will change the delay of all animations that use these classes.

The delay column in the table below assumes the --simple-animation-delay variable is set to 1s.

Class NameDelay
sa-delay1s

Repeat

These classes provide a shorthand way to set the animation-iteration-count CSS property.

The initial repeat that these classes are based on is set by the --simple-animation-repeat CSS variable, which defaults to 1. Changing this variable will change the repeat of all animations that use these classes.

The repeat column in the table below assumes the --simple-animation-repeat variable is set to 1.

Class NameRepeat
sa-repeat1
sa-repeat-infiniteinfinite