CSS animation-play-state Property
- Previous Page animation-name
- Next Page animation-timing-function
Definition and Usage
animation-play-state
This property specifies whether the animation is running or paused.
Note:You can use this property in JavaScript to pause the animation during playback.
See also:
CSS3 Tutorial:CSS Animation
HTML DOM Reference Manual:animationPlayState Property
CSS Syntax
animation-play-state: paused|running;
Value | Description | Test |
---|---|---|
paused | Specifies that the animation has been paused. | Test |
running | Specifies that the animation is playing. | Test |
Technical Details
Default Value: | running |
---|---|
Inheritance: | no |
Version: | CSS3 |
JavaScript Syntax: | object.style.animationPlayState="paused" |
Browser Support
The numbers in the table indicate the first browser version that fully supports the property.
Numbers with -webkit-, -moz-, or -o- prefixes indicate the first version using the prefix.
Chrome | Edge | Firefox | Safari | Opera |
---|---|---|---|---|
Chrome | Edge | Firefox | Safari | Opera |
43.0 4.0 -webkit- |
10.0 | 16.0 5.0 -moz- |
9.0 4.0 -webkit- |
30.0 15.0 -webkit- 12.0 -o- |
- Previous Page animation-name
- Next Page animation-timing-function