Capítulo 61 de 411

Chapter 61: Timeline.labels

Core Idea

labels is an object holding every label added to the timeline, keyed by name with the time as the value.

Code Examples

let tl = gsap.timeline();
tl.addLabel("myLabel", 3);
console.log(tl.labels); // { myLabel: 3 }

Connects To

  • Timeline.addLabel(): how entries get added to this object.