Skip to main content

parent

parent : Timeline

The parent Timeline to which the animation is attached. Anything that's not in a Timeline that you create is placed on the gsap.globalTimeline by default.

Details

The parent Timeline to which the Timeline is attached. Anything that's not inside a Timeline that you create is placed on the gsap.globalTimeline by default.

Each animation (Tweens and Timelines) can only exist in one parent. Think of it like a DOM element that can't have multiple parents. If you add() an animation to a different Timeline, its parent will change to that Timeline.

How do timelines work?

See the Timeline docs for details. It's very helpful to understand how the mechanics work conceptually.