Animation: id property

Baseline 2022

Newly available

Since September 2022, this feature works across the latest devices and browser versions. This feature might not work in older devices or browsers.

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


A string 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:

js = "rabbitGo";


Web Animations
# dom-animation-id

Browser compatibility

BCD tables only load in the browser

See also