WorkletAnimationEffect Class

An animator effect (https://drafts.css-houdini.org/css-animation-worklet-1/#animator-effect): the effect of a worklet animation in the animation worklet. The animate() callback of the animator sets its local time, which is synced to the effect after the callback.

public sealed class WorkletAnimationEffect

Properties

NameDescription
LocalTimeGets or sets the local time of the effect, in milliseconds, or null when it is unresolved (https://drafts.css-houdini.org/css-animation-worklet-1/#dom-workletanimationeffect-localtime).

Gets or sets the local time of the effect, in milliseconds, or null when it is unresolved (https://drafts.css-houdini.org/css-animation-worklet-1/#dom-workletanimationeffect-localtime).

public double? LocalTime { get; set; }

Methods

NameDescription
GetComputedTiming()Returns the calculated timing properties of the corresponding effect at the local time of this animator effect (https://drafts.css-houdini.org/css-animation-worklet-1/#dom-workletanimationeffect-getcomputedtiming).
GetTiming()Returns the specified timing properties of the corresponding effect (https://drafts.css-houdini.org/css-animation-worklet-1/#dom-workletanimationeffect-gettiming).

GetComputedTiming()

WorkletAnimation.cs

Returns the calculated timing properties of the corresponding effect at the local time of this animator effect (https://drafts.css-houdini.org/css-animation-worklet-1/#dom-workletanimationeffect-getcomputedtiming).

public ComputedEffectTiming GetComputedTiming()

Returns the specified timing properties of the corresponding effect (https://drafts.css-houdini.org/css-animation-worklet-1/#dom-workletanimationeffect-gettiming).

public EffectTiming GetTiming()