Table of Contents

Class AnimationEffect

Namespace
CSharpToJavaScript.APIs.JS
Assembly
CSharpToJavaScript.dll

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

[Value("AnimationEffect")]
public class AnimationEffect
Inheritance
AnimationEffect
Derived
Inherited Members

Remarks

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.

-Web Animations API
-Effect

See also on MDN

Constructors

AnimationEffect()

public AnimationEffect()

Properties

NextSibling

[Value("nextSibling")]
public AnimationEffect? NextSibling { get; }

Property Value

AnimationEffect

Parent

[Value("parent")]
public GroupEffect? Parent { get; }

Property Value

GroupEffect

PreviousSibling

[Value("previousSibling")]
public AnimationEffect? PreviousSibling { get; }

Property Value

AnimationEffect

Methods

After(params AnimationEffect[])

[Value("after")]
public GlobalObject.Undefined After(params AnimationEffect[] effects)

Parameters

effects AnimationEffect[]

Returns

GlobalObject.Undefined

Before(params AnimationEffect[])

[Value("before")]
public GlobalObject.Undefined Before(params AnimationEffect[] effects)

Parameters

effects AnimationEffect[]

Returns

GlobalObject.Undefined

GetComputedTiming()

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

[Value("getComputedTiming")]
public ComputedEffectTiming GetComputedTiming()

Returns

ComputedEffectTiming

An object which contains:

Remarks

NOTE

These values are comparable to the computed styles of an Element returned using window.getComputedStyle(elem).

-Web Animations API
-AnimationEffect
-Animation

See also on MDN

GetTiming()

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

[Value("getTiming")]
public EffectTiming GetTiming()

Returns

EffectTiming

An object containing the following properties:

Remarks

NOTE

Several of the timing properties returned by getTiming() may take on the placeholder value "auto". To obtain resolved values for use in timing computations, instead use GetComputedTiming().

In the future, "auto" or similar values might be added to the types of more timing properties, and new types of AnimationEffect might resolve "auto" to different values.

-Web Animations API
-AnimationEffect

See also on MDN

Remove()

[Value("remove")]
public GlobalObject.Undefined Remove()

Returns

GlobalObject.Undefined

Replace(params AnimationEffect[])

[Value("replace")]
public GlobalObject.Undefined Replace(params AnimationEffect[] effects)

Parameters

effects AnimationEffect[]

Returns

GlobalObject.Undefined

UpdateTiming(OptionalEffectTiming)

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

[Value("updateTiming")]
public GlobalObject.Undefined UpdateTiming(OptionalEffectTiming timing = null)

Parameters

timing OptionalEffectTiming

Returns

GlobalObject.Undefined

None (GlobalObject.Undefined).

Remarks