Skip to content

TimelineOptions

Options of engine.timeline().

optional repeat?: number

Plays after the first: 2 plays three times in all; -1 forever (until stop). Default 0.


optional yoyo?: boolean

Every other play runs backwards (with repeat).


optional delay?: number

Seconds before it starts.


optional paused?: boolean

Made paused: call resume() to start it.


optional onComplete?: () => void

Called when the last play ends (not on stop).

void