Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
mohamedkhallouq
GitHub Repository: mohamedkhallouq/content
Path: blob/main/files/en-us/web/api/animation/id/index.md
6546 views
---
title: Animation.id slug: Web/API/Animation/id page-type: web-api-instance-property browser-compat: api.Animation.id
---

{{ APIRef("Web Animations") }}

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 Follow the White Rabbit example, you can assign the rabbitDownAnimation an id like so:

rabbitDownAnimation.id = "rabbitGo";

Specifications

{{Specifications}}

Browser compatibility

{{Compat}}

See also