Class AnimationEvent
Hierarchy
- AnimationEvent
Index
Constructors
Properties
Constructors
constructor
-
Initializes the animation event
Parameters
-
frame: number
The frame for which the event is triggered
-
action: (currentFrame: number) => void
The event to perform when triggered
-
-
Parameters
-
currentFrame: number
Returns void
-
-
-
-
Optional onlyOnce: boolean | undefined
Specifies if the event should be triggered only once
Returns AnimationEvent
-
Properties
actionSearch playground for action
The event to perform when triggered
Type declaration
-
-
Parameters
-
currentFrame: number
Returns void
-
-
frameSearch playground for frame
The frame for which the event is triggered
is DoneSearch playground for isDone
Specifies if the animation event is done
Optional only OnceSearch playground for onlyOnce
Specifies if the event should be triggered only once
Composed of a frame, and an action function