Capítulo 92 de 411

Chapter 92: Timeline.totalTime()

Core Idea

totalTime() gets or sets the playhead position in seconds, including repeats/repeatDelays (unlike time(), which excludes them).

Reference Tables

ParameterTypeDefaultDescription
valueNumberNaNomit to get, pass to set
suppressEventsBooleanfalseif true, don't fire callbacks during the jump

Code Examples

tl.totalTime(5);

Connects To

  • Timeline.time(): the equivalent that excludes repeats.