Animation: id-Eigenschaft
Baseline Widely available
This feature is well established and works across many devices and browser versions. It’s been available across browsers since March 2020.
Die Animation.id
-Eigenschaft der Web Animations API gibt einen String zurück oder setzt diesen, um die Animation zu identifizieren.
Wert
Ein String, der verwendet werden kann, um die Animation zu identifizieren, oder null
, wenn die Animation keine id
hat.
Beispiele
Im Beispiel "Follow the White Rabbit" können Sie der rabbitDownAnimation
eine id
wie folgt zuweisen:
js
rabbitDownAnimation.id = "rabbitGo";
Spezifikationen
Specification |
---|
Web Animations # dom-animation-id |
Browser-Kompatibilität
Report problems with this compatibility data on GitHubdesktop | mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
id |
Legend
Tip: you can click/tap on a cell for more information.
- Full support
- Full support
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.