Table of Contents

Class AnimationEvent

Namespace
CSharpToJavaScript.APIs.JS
Assembly
CSharpToJavaScript.dll

The AnimationEvent interface represents events providing information related to animations.

[Value("AnimationEvent")]
public class AnimationEvent : Event
Inheritance
AnimationEvent
Inherited Members

Remarks

Constructors

AnimationEvent()

public AnimationEvent()

AnimationEvent(string, AnimationEventInit)

The AnimationEvent() constructor returns a new AnimationEvent object, representing an event in relation with an animation.

public AnimationEvent(string type, AnimationEventInit animationEventInitDict = null)

Parameters

type string
animationEventInitDict AnimationEventInit

Remarks

Properties

AnimationName

The AnimationEvent.animationName read-only property is a
string containing the value of the animation-name CSS
property associated with the transition.

[Value("animationName")]
public string AnimationName { get; }

Property Value

string

A string containing the value of the animation-name CSS property.

Remarks

ElapsedTime

The AnimationEvent.elapsedTime read-only property is a
float giving the amount of time the animation has been running, in seconds,
when this event fired, excluding any time the animation was paused. For an
Elementanimationstart event,
elapsedTime is 0.0 unless there was a negative value for
animation-delay, in which case the event will be fired with
elapsedTime containing (-1 * delay).

[Value("elapsedTime")]
public Number ElapsedTime { get; }

Property Value

Number

A float giving the amount of time in seconds.

Remarks

PseudoElement

The AnimationEvent.pseudoElement read-only property is a
string, starting with '::', containing the name of the pseudo-element the animation runs on.
If the animation doesn't run on a pseudo-element but on the element, an empty string: ''.

[Value("pseudoElement")]
public string PseudoElement { get; }

Property Value

string

A string, starting with '::', containing the name of the pseudo-element the animation runs on.

Remarks