W3cubDocs

/Web APIs

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-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.

Value

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

active

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

persisted

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

removed

The animation has been removed by the browser automatically.

Specifications

Browser compatibility

Desktop Mobile
Chrome Edge Firefox Opera Safari Chrome Android Firefox for Android Opera Android Safari on IOS Samsung Internet WebView Android WebView on iOS
replaceState 84 84 75 70 13.1 84 79 60 13.4 14.0 84 13.4

See also

© 2005–2025 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/Animation/replaceState