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.
Constructors
AnimationEffect()
public AnimationEffect()
Properties
NextSibling
[Value("nextSibling")]
public AnimationEffect? NextSibling { get; }
Property Value
Parent
[Value("parent")]
public GroupEffect? Parent { get; }
Property Value
PreviousSibling
[Value("previousSibling")]
public AnimationEffect? PreviousSibling { get; }
Property Value
Methods
After(params AnimationEffect[])
[Value("after")]
public GlobalObject.Undefined After(params AnimationEffect[] effects)
Parameters
effectsAnimationEffect[]
Returns
Before(params AnimationEffect[])
[Value("before")]
public GlobalObject.Undefined Before(params AnimationEffect[] effects)
Parameters
effectsAnimationEffect[]
Returns
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).
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.
Remove()
[Value("remove")]
public GlobalObject.Undefined Remove()
Returns
Replace(params AnimationEffect[])
[Value("replace")]
public GlobalObject.Undefined Replace(params AnimationEffect[] effects)
Parameters
effectsAnimationEffect[]
Returns
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
timingOptionalEffectTiming