Estilo animationName Propiedad
Ejemplo
Cambiando la propiedad animationName de un elemento <div>:
document.getElementById("myDIV").style.animationName = "myNEWmove";
Definición y uso
La propiedad animationName establece o devuelve un nombre para la animación @keyframes.
Compatibilidad con navegador
Los números de la tabla especifican la primera versión del navegador que es totalmente compatible con la propiedad.
Los números seguidos de Webkit, Moz u O especifican la primera versión que funcionó con un prefijo.
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 |
Sintaxis
Devuelve la propiedad animationName:
object.style.animationName
Establezca la propiedad animationName:
object.style.animationName = "none|keyframename|initial|inherit"
Valores de propiedad
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 |
Detalles técnicos
Valor por defecto: | ninguna |
---|---|
Valor de retorno: | Una cadena, que representa la propiedad de nombre de animación de un elemento |
Versión CSS | CSS3 |
páginas relacionadas
Referencia de CSS: propiedad de nombre de animación