AnimationEffect Class

An animation effect: its timing properties and the timing model that calculates its progress from the current time of its animation (https://drafts.csswg.org/web-animations-1/#animation-effects).

public abstract class AnimationEffect

Methods

NameDescription
GetComputedTiming()Returns the calculated timing properties of the effect (https://drafts.csswg.org/web-animations-1/#dom-animationeffect-getcomputedtiming).
GetTiming()Returns the specified timing properties of the effect (https://drafts.csswg.org/web-animations-1/#dom-animationeffect-gettiming).
UpdateTiming(OptionalEffectTiming?)Updates the timing properties of the effect (https://drafts.csswg.org/web-animations-1/#dom-animationeffect-updatetiming): the members of timing that are set replace the current values.

GetComputedTiming()

AnimationEffect.cs

Returns the calculated timing properties of the effect (https://drafts.csswg.org/web-animations-1/#dom-animationeffect-getcomputedtiming).

public ComputedEffectTiming GetComputedTiming()

Returns the specified timing properties of the effect (https://drafts.csswg.org/web-animations-1/#dom-animationeffect-gettiming).

public EffectTiming GetTiming()

UpdateTiming(OptionalEffectTiming?)

AnimationEffect.cs

Updates the timing properties of the effect (https://drafts.csswg.org/web-animations-1/#dom-animationeffect-updatetiming): the members of timing that are set replace the current values.

public void UpdateTiming(OptionalEffectTiming? timing = null)

Parameters

timing OptionalEffectTiming?

Exceptions

TypeErrorException
A value is invalid (e.g. a negative duration or an invalid easing function).

See also