Creates a Timer Event and adds it to the Clock at the start of the frame.
This is a shortcut for #addEvent which can be shorter and is compatible with the syntax of the GreenSock Animation Platform (GSAP).
name | type | arguments | description |
---|---|---|---|
delay | number |
The delay of the function call, in milliseconds. |
|
callback | function |
The function to call after the delay expires. |
|
args | Array.<*> | <optional> |
The arguments to call the function with. |
callbackScope | * | <optional> |
The scope ( |
The Timer Event which was created.