Capítulo 39 de 411
addLabel() marks a named position/time in the timeline so later methods can reference it instead of a raw number.
| Parameter | Type | Default | Description |
|---|---|---|---|
label | String | — | the label's name |
position | Number | String | "+=0" | where to place it |
Returns: self.
tl.addLabel("start2").to(".box", { x: 100 }, "start2");
"start2" instead of a fragile absolute time.