Capítulo 63 de 411

Chapter 63: Timeline.parent

Core Idea

parent is the Timeline this instance is nested inside; anything not explicitly added to a timeline you created lives on gsap.globalTimeline by default.

Key Concepts

  • An animation can only have one parent at a time — adding it to a different timeline reassigns parent to that new one.

Code Examples

console.log(tl.parent); // the containing Timeline (often gsap.globalTimeline)

Connects To

  • gsap.globalTimeline: the default parent for top-level animations.