This is an experimental technology
Check the Browser compatibility table carefully before using this in production.

The property of the Web Animations API returns or sets a string used to identify the animation.


var animationsId =; = newIdString;


A DOMString which can be used to identify the animation, or null if the animation has no id.


In the Follow the White Rabbit example, you can assign the rabbitDownAnimation an id like so: = "rabbitGo";


Specification Status Comment
Web Animations
The definition of '' in that specification.
Working Draft Editor's draft.

Browser compatibility

BCD tables only load in the browser

See also