Example

A simple animation-play-state property example:

Laboratory

description & Usage

The animation-play-state property allows the animation to start moving or stop automatically.

Informations

# Description
Default Value running
Inherited no
Animatable no
Version CSS3
JavaScript syntax object.style.animationPlayState="paused"

Browser compatibility and Support

The numbers inserted in the browser fields indicate the version that supports the animation-play-state property.

# Chrome Edge Firefox Safari Opera
animation-play-state

Syntax

Values

Values Description
paused It causes the animation to be automatically stopped.
running It causes the animation to start playing automatically.
initial Adds this value to its default property.
inherit It inherits this value from its parent tag.

Related Pages

CSS tutorial: CSS animations

HTML DOM reference: animationPlayState property