HTML DOM Style animationPlayState property
Definition and Usage
animationPlayState attribute specifies the animation is running or paused.
Note: Use this attribute is playing in a suspended animation.
Browser Support
Internet Explorer 10, Firefox and Opera support animationPlayState property.
Safari and Chrome support another alternative of the property attribute that WebkitAnimationPlayState property.
Note: Internet Explorer 9 and earlier versions do not support animationPlayState property.
grammar
Back animationPlayState properties:
object .style.animationPlayState
Setting animationPlayState properties:
object .style.animationPlayState="running|paused|initial|inherit"
Property Value
值 | 描述 |
---|---|
running | 默认值。规定动画是运行的。 |
paused | 规定动画是暂停的。 |
initial | 设置该属性为它的默认值。请参阅 initial 。 |
inherit | 从父元素继承该属性。请参阅 inherit 。 |
technical details
Defaults: | running |
---|---|
return value: | String representing the animation-play-state property element. |
CSS version | CSS3 |
related articles
CSS Reference Manual: Animation-Play-State Properties