--- title: AnimationEvent slug: Web/API/AnimationEvent tags: - API - Animaciones Web - Experimental - Interface - Referencia translation_of: Web/API/AnimationEvent ---
{{SeeCompatTable}}{{APIRef("Web Animations API")}}
La interfaz AnimationEvent representa los eventos que proporciona información relacionada con las animaciones.
{{InheritanceDiagram}}
También hereda las propiedades de su padre {{domxref("Event")}}.
"animationstart", elapsedTime es 0.0 a ménos que hubiera un valor negativo para {{cssxref("animation-delay")}}, en tal caso sería disparado el evento con elapsedTime conteniendo (-1 * retraso).'::', conteniendo el nombre del pseudo-element en el cual corre la animación. Si la animación no corre sobre un pseudo-element sino en el elemento, un string vacío: ''. AnimationEvent con los parametros dados.También hereda los métodos de su padre {{domxref("Event")}}.
AnimationEvent creado utilizando el método obsoleto {{domxref("Document.createEvent()", "Document.createEvent(\"AnimationEvent\")")}}| Especificación | Estatus | Comentario |
|---|---|---|
| {{ SpecName('CSS3 Animations', '#AnimationEvent-interface', 'AnimationEvent') }} | {{ Spec2('CSS3 Animations') }} | Definición inicial. |
{{CompatibilityTable}}
| Característica | Chrome | Firefox (Gecko) | Internet Explorer | Opera | Safari |
|---|---|---|---|---|---|
| Soporte básico |
1.0 {{ property_prefix("webkit") }} {{CompatChrome(43.0)}} |
{{ CompatGeckoDesktop("6.0") }} | 10.0 | 12 {{ property_prefix("o") }} 12.10 15.0 {{ property_prefix("webkit") }} |
4.0 {{ property_prefix("webkit") }} |
Constructor de AnimationEvent() |
{{CompatChrome(43.0)}} |
{{ CompatGeckoDesktop("23.0") }} | {{CompatNo}} | {{CompatNo}} | {{CompatNo}} |
initAnimationEvent() {{non-standard_inline}}{{deprecated_inline}} |
1.0 | {{ CompatGeckoDesktop("6.0") }} Removed in {{ CompatGeckoDesktop("23.0") }} |
10.0 | 12 | 4.0 |
pseudoelement |
{{CompatNo}} | {{ CompatGeckoDesktop("23.0") }} | {{CompatNo}} | {{CompatNo}} | {{CompatNo}} |
| Característica | Android | Firefox Mobile (Gecko) | IE Mobile | Opera Mobile | Safari Mobile | Chrome para Android |
|---|---|---|---|---|---|---|
| Soporte básico | {{CompatVersionUnknown}}{{ property_prefix("webkit") }} | {{ CompatGeckoMobile("6.0") }} | 10.0 | 12 {{ property_prefix("o") }} 12.10 15.0 {{ property_prefix("webkit") }} |
{{CompatVersionUnknown}}{{ property_prefix("webkit") }} | {{CompatChrome(43.0)}} |
Constructor de AnimationEvent() |
{{CompatNo}} | {{ CompatGeckoMobile("23.0") }} | {{CompatNo}} | {{CompatNo}} | {{CompatNo}} | {{CompatChrome(43.0)}} |
initAnimationEvent() {{non-standard_inline}}{{deprecated_inline}} |
{{CompatVersionUnknown}} | {{ CompatGeckoMobile("6.0") }} Removed in {{ CompatGeckoMobile("23.0") }} |
10.0 | {{CompatVersionUnknown}} | {{CompatVersionUnknown}} | {{CompatNo}} |
pseudoelement |
{{CompatNo}} | {{ CompatGeckoMobile("23.0") }} | {{CompatNo}} | {{CompatNo}} | {{CompatNo}} | {{CompatNo}} |