Propriété de style animationName
Exemple
Modification de la propriété animationName d'un élément <div> :
document.getElementById("myDIV").style.animationName = "myNEWmove";
Définition et utilisation
La propriété animationName définit ou renvoie un nom pour l'animation @keyframes.
Prise en charge du navigateur
Les nombres dans le tableau indiquent la première version du navigateur qui prend entièrement en charge la propriété.
Les nombres suivis de Webkit, Moz ou O spécifient la première version qui a fonctionné avec un préfixe.
Property | |||||
---|---|---|---|---|---|
animationName | 43.0 4.0 Webkit |
10.0 | 16.0 5.0 Moz |
9.0 4.0 Webkit |
30.0 15.0 Webkit 12.1 12.0 O |
Syntaxe
Renvoyez la propriété animationName :
object.style.animationName
Définissez la propriété animationName :
object.style.animationName = "none|keyframename|initial|inherit"
Valeurs de propriété
Value | Description |
---|---|
none | Default value. Specifies that there will be no animation (can be used to override animations coming from the cascade) |
keyframename | Specifies the name of the keyframe you want to bind to the selector |
initial | Sets this property to its default value. Read about initial |
inherit | Inherits this property from its parent element. Read about inherit |
Détails techniques
Valeur par défaut: | rien |
---|---|
Valeur de retour : | Une chaîne, représentant la propriété animation-name d'un élément |
Version CSS | CSS3 |
Pages connexes
Référence CSS : propriété animation-name