Animation: replaceState property
Baseline Widely available
This feature is well established and works across many devices and browser versions. It’s been available across browsers since July 2020.
The read-onlyAnimation.replaceState property of theWeb Animations API indicates whether the animation has beenremoved by the browser automatically after being replaced by another animation.
In this article
Value
A string that represents the replace state of the animation. The value can be one of:
activeThe initial value of the animation's replace state when the animation is created.
persistedThe animation has been explicitly persisted by invoking
Animation.persist()on it.removedThe animation has been removed by the browser automatically.
Specifications
| Specification |
|---|
| Web Animations> # dom-animation-replacestate> |