Animation Shorthand Cheat Sheet

Resources: Mozilla | Codrops | CSS Tricks

Property

The shorthand property to set all longhand animation properties.

animation:

Name

Specify the name of the animation defined by @keyframes rules.

[animation-name]

Duration

Specify how long the animation should take in 's' or 'ms'.

[animation-duration]

Timing Function

Defines speed of an animation over time. ie: linear, ease-in-out.

[animation-timing-function]

Delay

Defines when the animation will start after being applied.

[animation-delay]

Iteration Count

The number of times the animation will loop. (1,..., infinite)

[animation-iteration-count]

Direction

Animation direction: normal, reverse, alternate, alternate-reverse

[animation-direction]

Name

Where the animation leaves off: none, forwards, backwards, both.

[animation-fill-mode]
;

Play State

Specify wether the animation is running or paused. (No Shorthand)

animation-play-state:

Play States

Defaults to running, and pauses the animation in place when set.

running | paused
;

@keyframes

A CSS rule used to define a particular animation over time.

@keyframes

Name

Used to declare which animation you are referencing in 'animation:'.

[animation-name]
{
from
{
}
to
{
}
}