Latest web development tutorials

propriété HTML DOM style animationPlayState

Style de Object Reference style Objets

Exemples

Pause un film:

document.getElementById("myDIV").style.animationPlayState="paused";

Essayez »

Définition et utilisation

animationPlayState attribut spécifie l'animation est en cours d'exécution ou en pause.

Remarque: Utilisez cet attribut joue dans une animation suspendue.


support du navigateur

Internet ExplorerFirefoxOperaGoogle ChromeSafari

Internet Explorer 10, Firefox et le soutien de l'Opéra propriété animationPlayState.

Safari et Chrome supportent une autre variante de la propriété attribut que la propriété WebkitAnimationPlayState.

Remarque: Internet Explorer 9 et les versions antérieures ne prennent pas en charge la propriété animationPlayState.


grammaire

Retour propriétés animationPlayState:

object .style.animationPlayState

Définition des propriétés de animationPlayState:

object .style.animationPlayState="running|paused|initial|inherit"

Valeur de la propriété

描述
running 默认值。规定动画是运行的。
paused 规定动画是暂停的。
initial 设置该属性为它的默认值。请参阅 initial
inherit 从父元素继承该属性。请参阅 inherit

détails techniques

Par défaut: fonctionnement
Retours: Chaîne représentant l'élément de propriété jeu état d'animation.
CSS version CSS3


articles connexes

CSS Manuel de référence: Propriétés Animation-Play-State


Style de Object Reference style Objets