Animation: replaceState プロパティ

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.

Animation.replaceStateウェブアニメーション API の読み取り専用プロパティで、アニメーションが別なアニメーションで置き換えられた後で、ブラウザーによって削除されたかどうかを示します。

アニメーションの遷移先の状態を表す文字列。値は以下のいずれかです。

active

アニメーションが作成されたときの、アニメーションの置き換える状態の初期値です。

persisted

アニメーションに Animation.persist() が呼び出されており、明示的に維持されています。

removed

アニメーションはブラウザーによって自動的に除去されています。

仕様書

Specification
Web Animations
# dom-animation-replacestate

ブラウザーの互換性

BCD tables only load in the browser

関連情報