AnimationEffect

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.

AnimationEffectウェブアニメーション API のインターフェイスで、アニメーション効果を表すインターフェイスです。

AnimationEffect は抽象インターフェイスなので、直接インスタンス化することはできません。しかし、 KeyframeEffect のような具体的なインターフェイスはこれを継承しており、これらのインターフェイスのインスタンスは Animation オブジェクトに渡して再生することができますし、 CSS アニメーショントランジションでも使うことができます。

インスタンスメソッド

AnimationEffect.getTiming()

アニメーションのすべてのタイミング値を含む、アニメーションに関連付けられたオブジェクトを返します。

AnimationEffect.getComputedTiming()

この AnimationEffect のタイミングプロパティの計算値を返します。

AnimationEffect.updateTiming()

この AnimationEffect のタイミングプロパティの指定値を更新します。

仕様書

Specification
Web Animations
# the-animationeffect-interface

ブラウザーの互換性

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
AnimationEffect
getComputedTiming
getTiming
updateTiming

Legend

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

Full support
Full support
Uses a non-standard name.
Has more compatibility info.

関連情報