Animation: replaceState-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 schreibgeschützte Animation.replaceState-Eigenschaft der Web Animations API gibt an, ob die Animation vom Browser automatisch entfernt wurde, nachdem sie durch eine andere Animation ersetzt wurde.

Wert

Ein String, der den Ersetzungszustand der Animation darstellt. Der Wert kann einer der folgenden sein:

active

Der Anfangswert des Ersetzungszustands der Animation, wenn die Animation erstellt wird.

persisted

Die Animation wurde explizit durch den Aufruf von Animation.persist() auf ihr beibehalten.

removed

Die Animation wurde automatisch vom Browser entfernt.

Spezifikationen

Specification
Web Animations
# dom-animation-replacestate

Browser-Kompatibilität

Report problems with this compatibility data on GitHub
desktopmobile
Chrome
Edge
Firefox
Opera
Safari
Chrome Android
Firefox for Android
Opera Android
Safari on iOS
Samsung Internet
WebView Android
WebView on iOS
replaceState

Legend

Tip: you can click/tap on a cell for more information.

Full support
Full support

Siehe auch