AnimationEffect
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.
AnimationEffect
はウェブアニメーション API のインターフェイスで、アニメーション効果を表すインターフェイスです。
AnimationEffect
は抽象インターフェースなので、直接インスタンス化することはできません。しかし、 KeyframeEffect
(en-US) のような具体的なインターフェイスはこれを継承しており、これらのインターフェイスのインスタンスは Animation
オブジェクトに渡して再生することができますし、 CSS アニメーションやトランジションでも使うことができます。
インスタンスメソッド
AnimationEffect.getTiming()
-
アニメーションのすべてのタイミング値を含む、アニメーションに関連付けられたオブジェクトを返します。
AnimationEffect.getComputedTiming()
-
この
AnimationEffect
のタイミングプロパティの計算値を返します。 AnimationEffect.updateTiming()
-
この
AnimationEffect
のタイミングプロパティの指定値を更新します。
仕様書
Specification |
---|
Web Animations # the-animationeffect-interface |
ブラウザーの互換性
BCD tables only load in the browser