web api instance property
Animation: id property
The Animation.id property of the Web Animations API returns or sets a string used to identify the animation.
Value
A string which can be used to identify the animation, or null if the animation has no id.
Examples
In the Red Queen’s Race Game example, you can assign the redQueenAlice an id like so:
redQueenAlice.id = "redQueenAlice";
Specifications
SpecificationsStandards references are available on the canonical MDN page.
Browser compatibility
Browser compatibilityCompatibility data is available on the canonical MDN page.