gsap-timeline
Agent skill fromgreensock/gsap-skills
Official GSAP skill for timelines — gsap.timeline(), position parameter, nesting, playback. Use when sequencing animations, choreographing keyframes, or when the user asks about animation sequencing, timelines, or animation order (in GSAP or when recommending a library that supports timelines).
How to install gsap-timeline
install gsap-timeline
# install the gsap-skills pack with the skills CLI
npx skills add greensock/gsap-skills# or add only this skill to Claude Code: copy the folder
skills/gsap-timeline/
# into
~/.claude/skills/gsap-timeline/ (all projects)
.claude/skills/gsap-timeline/ (one project)
1# GSAP Timeline23## When to Use This Skill45Apply when building multi-step animations, coordinating several tweens in sequence or parallel, or when the user asks about timelines, sequencing, or keyframe-style animation in GSAP.67**Related skills:** For single tweens and eases use **gsap-core**; for scroll-driven timelines use **gsap-scrolltrigger**; for React use **gsap-react**.89## Creating a Timeline1011```javascript12const tl = gsap.timeline();13tl.to(".a", { x: 100, duration: 1 })14 .to(".b", { y: 50, duration: 0.5 })15 .to(".c", { opacity: 0, duration: 0.3 });16```1718By default, tweens are **appended** one after another. Use the **position parameter** to place tweens at specific times or relative to other tweens.1920## Position Parameter2122Third argument (or position property in vars) controls placement:2324- **Absolute**: `1` — start at 1 second.25- **Relative (default)**: `"+=0.5"` — 0.5s after end; `"-=0.2"` — 0.2s before end.26- **Label**: `"labelName"` — at that label; `"labelName+=0.3"` — 0.3s after label.27- **Placement**: `"<"` — start when recently-added animation starts; `">"` — start when recently-added animation ends (default); `"<0.2"` — 0.2s after recently-added animation start.2829Examples:3031```javascript32tl.to(".a", { x: 100 }, 0); // at 033tl.to(".b", { y: 50 }, "+=0.5"); // 0.5s after last end34tl.to(".c", { opacity: 0 }, "<"); // same start as previous35tl.to(".d", { scale: 2 }, "<0.2"); // 0.2s after previous start36```3738## Timeline Defaults39…
Excerpt shown under the repository's MIT license.
