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.

Das AnimationEffect-Interface der Web Animations API ist ein Interface, das Animationseffekte repräsentiert.

AnimationEffect ist ein abstraktes Interface und kann daher nicht direkt instanziiert werden. Jedoch erben konkrete Interfaces wie KeyframeEffect davon, und Instanzen dieser Interfaces können an Animation-Objekte zum Abspielen übergeben werden. Sie können auch von CSS-Animationen und Transitionen verwendet werden.

Instanzmethoden

AnimationEffect.getTiming()

Gibt das mit der Animation verbundene Objekt zurück, das alle Timing-Werte der Animation enthält.

AnimationEffect.getComputedTiming()

Gibt die berechneten Timing-Eigenschaften für dieses AnimationEffect zurück.

AnimationEffect.updateTiming()

Aktualisiert die angegebenen Timing-Eigenschaften dieses AnimationEffect.

Spezifikationen

Specification
Web Animations
# the-animationeffect-interface

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
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.

Siehe auch