liveBook · Manning

Animation property

The CSS animation property is a shorthand property for configuring one or more animations on an element.

How 2 Manning books explain it

Tiny CSS Projects

The CSS animation property is a shorthand property for configuring an element's animation name, timing, duration, iteration, and related behavior.

How it is used
Configures a repeating CSS loading indicator that shows a task is still running.
How deep it goes
Works through named keyframes, duration, repetition, shorthand defaults, and staggered delays; does not detail every animation setting.
Examples
Uses shrinking SVG rectangles, the `animation: doScale 2.2s infinite` declaration, and a reduced-motion override.
What you can do after
Build it from scratch: apply a repeating keyframe animation to a loader, stagger its elements, and disable motion conditionally.

Read how Tiny CSS Projects explains animation property →

CSS in Depth, Second Edition

The CSS animation property is a shorthand property for configuring one or more animations on an element.

How it is used
Applies named keyframe animations to elements while configuring duration, timing, and repetition.
How deep it goes
Defines four shorthand components and notes fill mode, but does not enumerate every animation subproperty.
Examples
Uses a 100px green box that changes color and position, runs 1.5 seconds, and repeats three times.
What you can do after
Apply a named @keyframes animation with shorthand values for duration, timing, and iteration count.

Read how CSS in Depth, Second Edition explains animation property →

Related concepts

These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.