AnimationOptions

Provides event argument properties for the Animation event handlers.

Properties

begin EmitType<AnimationOptions>

Event is triggered when the animation starts.

delay Number

Specifies the delay in milliseconds to start the animation.

Default: 0

duration Number

Specifies the duration in milliseconds of the animation.

Default: 400

element HTMLElement

Gets the HTML element the animation is applied to.

end EmitType<AnimationOptions>

Event is triggered when the animation is completed.

fail EmitType<AnimationOptions>

Event is triggered when the animation encounters a failure.

name Effect

Specifies the duration in milliseconds of the animation.

Default: FadeIn

progress EmitType<AnimationOptions>

Event is triggered when the animation is in progress.

timeStamp Number

Gets the current time stamp from the animation event handler.

timingFunction Easing

Specifies the animation timing function.

Default: Ease