Firefox Tomorrow

web api interface

AnimationEffect

View on MDN ↗

The AnimationEffect interface of the Web Animations API is an interface representing animation effects.

AnimationEffect is an abstract interface and so isn’t directly instantiable. However, concrete interfaces such as KeyframeEffect inherit from it, and instances of these interfaces can be passed to Animation objects for playing, and may also be used by CSS Animations and Transitions.

Instance methods

  • getTiming()
    • : Returns the object associated with the animation containing all the animation’s timing values.
  • getComputedTiming()
    • : Returns the calculated timing properties for this AnimationEffect.
  • updateTiming()
    • : Updates the specified timing properties of this AnimationEffect.

Specifications

SpecificationsStandards references are available on the canonical MDN page.

Browser compatibility

Browser compatibilityCompatibility data is available on the canonical MDN page.

See also