CSS · Motion and transforms

animation

Shorthand for animating keyframes: name, duration, timing, delay, iteration and direction.

Syntax
animation: name 1s ease infinite

Example

Try it

More in this group

@keyframes animation-duration animation-iteration-count animation-name perspective prefers-reduced-motion transform transform-origin

Learn this in the course

Reference pages are the quick answer. The course explains the why, shows the full example and ends with a challenge.

Open the course