Capítulo 68 de 411

Chapter 68: Timeline.progress()

Core Idea

progress() gets or sets the playhead position as a 0-1 fraction of the timeline's duration, excluding repeats.

Reference Tables

ParameterTypeDefaultDescription
valueNumberNaN0 (start) to 1 (complete); omit to get, pass to set
suppressEventsBooleanfalseif true, don't fire callbacks during the jump

Code Examples

tl.progress(0.5); // jump to the halfway point

Connects To

  • Timeline.totalProgress(): the equivalent that includes repeats in its 0-1 range.