Interactive online courses HTML Academy
2026-03-09 10:47 Diff

Yet another important property of CSS animations is called animation-play-state. It allows you to pause an animation and then resume playback from the same position.

The property can have two values: running and paused. As you can tell from the names, paused pauses an animation and running starts or resumes a previously paused animation. By default, the property’s value is running.

Let’s try creating an animation and controlling its playback.