Vlastnost Style animationName
Příklad
Změna vlastnosti animationName prvku <div>:
document.getElementById("myDIV").style.animationName = "myNEWmove";
Definice a použití
Vlastnost animationName nastavuje nebo vrací název animace @keyframes.
Podpora prohlížeče
Čísla v tabulce určují první verzi prohlížeče, která plně podporuje vlastnost.
Čísla následovaná Webkit, Moz nebo O určují první verzi, která pracovala s předponou.
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 |
Syntax
Vraťte vlastnost animationName:
object.style.animationName
Nastavte vlastnost animationName:
object.style.animationName = "none|keyframename|initial|inherit"
Hodnoty vlastností
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 |
Technické údaje
Výchozí hodnota: | žádný |
---|---|
Návratová hodnota: | Řetězec představující vlastnost animation-name prvku |
Verze CSS | CSS3 |
Související stránky
CSS reference: vlastnost animation-name