Animation: replaceState property
MDN Web Docs · نسخهٔ df622a2a1c1e · CC BY-SA 2.5 و مجوز جداگانهٔ ناشر برای نمونهکد
{{ APIRef("Web Animations") }}
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 {{domxref("Animation.persist()")}} on it.
removed- : The animation has been removed by the browser automatically.
Specifications
{{Specifications}}
Browser compatibility
{{Compat}}
See also
- Web Animations API
- {{domxref("Animation")}}
- {{domxref("Animation.remove_event","remove")}} event
- {{domxref("Animation.persist()")}}