What problem does it solve?
Create clear, maintainable sequencing for multi-step animations so developers and designers avoid fragile timing hacks and excessive delays when coordinating multiple tweens or nested animations.
Core Features & Use Cases
- Sequencing: append or place tweens precisely using the position parameter for absolute, relative, and label-based placement.
- Defaults & inheritance: set timeline-level defaults such as duration and easing so child tweens remain consistent.
- Labels & readability: add and use labels to jump, tweenFromTo, or make timeline choreography human-readable and easy to adjust.
- Nesting & composition: compose complex interactions by adding child timelines to a master timeline and control playback centrally.
- Playback control: play, pause, reverse, seek by time or progress, restart, and kill timelines for robust runtime control.
- Best practice: prefer timelines over chained delays and attach ScrollTrigger at the timeline or top-level tween rather than inside nested animations.
Quick Start
Create a GSAP timeline that sequences three elements with a shared default duration and labels, then play it.