Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

CSS3 animation-play-state property

CSS3 animation-play-state property

Example

Pause the animation:

animation-play-state:paused;

-webkit-animation-play-state:paused; /* Safari and Chrome */

Try it »


Browser support

The numbers in the table indicate the first browser version that supports this property.

A number immediately before -webkit-, -ms-, or -moz- indicates the first browser version that supports that prefixed property.

property
animation-play-state 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- |


Tag Definition and Usage Notes

The animation-play-state property specifies whether an animation is running or paused.

**Note:** Use this property in JavaScript to pause an animation during a cycle.

Default value: running
Inherited: no
Version: CSS3
JavaScript syntax: object object.style.animationPlayState="paused"

Syntax

animation-play-state: paused|running;

Value Description Testing
paused Specifies a paused animation Test »
running Specifies a running animation Test »

Related Articles

CSS3 tutorial: CSS3 Animations