Animation: replaceState 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 read-only Animation.replaceState property of the Web Animations API indicates whether the animation has been removed by the browser automatically after being replaced by another animation.


A string that represents the replace state of the animation. The value can be one of:


The initial value of the animation's replace state when the animation is created.


The animation has been explicitly persisted by invoking Animation.persist() on it.


The animation has been removed by the browser automatically.


Web Animations
# dom-animation-replacestate

Browser compatibility

BCD tables only load in the browser

See also