Stile animationName Proprietà
Esempio
Modifica della proprietà animationName di un elemento <div>:
document.getElementById("myDIV").style.animationName = "myNEWmove";
Definizione e utilizzo
La proprietà animationName imposta o restituisce un nome per l'animazione @keyframes.
Supporto browser
I numeri nella tabella specificano la prima versione del browser che supporta completamente la proprietà.
I numeri seguiti da Webkit, Moz o O specificano la prima versione che ha funzionato con un prefisso.
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 |
Sintassi
Restituisce la proprietà animationName:
object.style.animationName
Imposta la proprietà animationName:
object.style.animationName = "none|keyframename|initial|inherit"
Valori di proprietà
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 |
Dettagli tecnici
Valore di default: | nessuno |
---|---|
Valore di ritorno: | Una stringa, che rappresenta la proprietà del nome dell'animazione di un elemento |
Versione CSS | CSS3 |
Pagine correlate
Riferimento CSS: proprietà nome-animazione