Capítulo 39 de 411

Chapter 39: Timeline.addLabel()

Core Idea

addLabel() marks a named position/time in the timeline so later methods can reference it instead of a raw number.

Reference Tables

ParameterTypeDefaultDescription
labelStringthe label's name
positionNumber | String"+=0"where to place it

Returns: self.

Code Examples

tl.addLabel("start2").to(".box", { x: 100 }, "start2");

Key Takeaways

  1. Labels make sequences readable and resilient to reordering — reference "start2" instead of a fragile absolute time.

Connects To

  • labels: read the full label map from the timeline.
  • Position Parameter (Guide): labels are one of the accepted position formats.