--- title: Animation.id slug: Web/API/Animation/id tags: - API - Animacion - Animaciones Web - Experimental - Reference - id translation_of: Web/API/Animation/id ---
{{ SeeCompatTable() }}{{ APIRef("Web Animations") }}
La propiedad Animation.id de la Web Animations API devuelve o establece una cadena(string) utilizado para identificar la animación.
var animationsId = Animation.id; Animation.id = newIdString;
Un {{domxref("DOMString")}} que se puede usar para identificar la animación, o null si la animación no tiene id.
En el ejemplo Follow the White Rabbit , puedes asignar a rabbitDownAnimation un id de esta manera:
rabbitDownAnimation.effect.id = "rabbitGo";
| Specification | Status | Comment |
|---|---|---|
| {{SpecName('Web Animations', '#dom-animation-id', 'Animation.id' )}} | {{Spec2('Web Animations')}} | Editor's draft. |
| Feature | Chrome | Firefox (Gecko) | Internet Explorer | Opera | Safari (WebKit) |
|---|---|---|---|---|---|
| Basic support | {{CompatChrome(39.0)}} | {{CompatGeckoDesktop(48)}}[1] | {{CompatNo}} | {{CompatNo}} | {{CompatNo}} |
| Feature | Android | Firefox Mobile (Gecko) | IE Phone | Opera Mobile | Safari Mobile |
|---|---|---|---|---|---|
| Basic support | {{CompatVersionUnknown}} | {{CompatGeckoDesktop(48)}}[1] | {{CompatNo}} | {{CompatNo}} | {{CompatNo}} |
[1] La Web Animations API solo está habilitada por defecto en Firefox Developer Edition y Nightly builds. Puedes habilitarlo en versiones Beta y de lanzamiento estableciendo la preferencia dom.animations-api.core.enabled en true, y puedes deshabilitarlo en cualquier versión de Firefox estableciendo esta propiedad en false.