Skip to main content

AnimationEffect

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

MDN Reference

Methods

getComputedTiming()

getComputedTiming(): ComputedEffectTiming;

The getComputedTiming() method of the AnimationEffect interface returns the calculated timing properties for this animation effect.

MDN Reference

Returns

ComputedEffectTiming


getTiming()

getTiming(): EffectTiming;

The AnimationEffect.getTiming() method of the AnimationEffect interface returns an object containing the timing properties for the Animation Effect.

MDN Reference

Returns

EffectTiming


updateTiming()

updateTiming(timing?): void;

The updateTiming() method of the AnimationEffect interface updates the specified timing properties for an animation effect.

MDN Reference

Parameters

ParameterType
timing?OptionalEffectTiming

Returns

void