.fyi
SkillsMCPPluginsSubagents

Browse by category

DevOps & CI/CD SkillsProductivity & Workflow SkillsOther SkillsProduct & Project Management SkillsDocumentation & Knowledge SkillsCode Review & Refactor SkillsBackend & APIs SkillsAgent Meta & Communication SkillsResearch SkillsSecurity SkillsUX UI & Design SkillsTesting & QA SkillsSee all →

Every Claude Code skill, MCP server, plugin and subagent in one directory. Searchable, comparable, and one command from installed. Live stats from GitHub, npm and PyPI.

We're on Product HuntYour agent's app storeCheck it out →
Agent SkillsMCP ServersPluginsSubagentsCoding Agents
CollectionsOfficial publishersGlossaryFAQBlogSearchSavedFeedback
PrivacyTermsllms.txtSitemap

made with ♥ · © 2026 aaaa.fyi

Independent project · real data from public registries

…/gsap-skills/gsap-timeline
home/skills/greensock/gsap-skills/gsap-timeline
greensock avatar

gsap-timeline

bygreensock· 8 skills

Installs

37k

Stars

12k

Forks

732

Category

Frontend Development

View on GitHub

TL;DR

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?

greensock/gsap-skills/gsap-timeline
$npx -y skills add greensock/gsap-skills --skill gsap-timeline

Installs into the current project.

›Prefer a prompt? Paste this to your agent

Use this skill

Run `npx skills use "https://github.com/greensock/gsap-skills" --skill "greensock/gsap-skills/gsap-timeline"` and follow the generated skill instructions now. Read its complete output, redirecting it to a temporary file first if necessary. Resolve relative paths from the supporting-files directory it provides.

Use the whole pack

Use the skills in "https://github.com/greensock/gsap-skills" that are relevant to the current task. Run `npx skills add "https://github.com/greensock/gsap-skills"` and select the relevant skills, then follow their instructions.

Files · 1

View on GitHub
SKILL.md
1# GSAP Timeline
2 
3## When to Use This Skill
4 
5Apply 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.
6 
7**Related skills:** For single tweens and eases use **gsap-core**; for scroll-driven timelines use **gsap-scrolltrigger**; for React use **gsap-react**.
8 
9## Creating a Timeline
10 
11```javascript
12const 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```
17 
18By default, tweens are **appended** one after another. Use the **position parameter** to place tweens at specific times or relative to other tweens.
19 
20## Position Parameter
21 
22Third argument (or position property in vars) controls placement:
23 
24- **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.
28 
29Examples:
30 
31```javascript
32tl.to(".a", { x: 100 }, 0); // at 0
33tl.to(".b", { y: 50 }, "+=0.5"); // 0.5s after last end
34tl.to(".c", { opacity: 0 }, "<"); // same start as previous
35tl.to(".d", { scale: 2 }, "<0.2"); // 0.2s after previous start
36```
37 
38## Timeline Defaults
39 
40Pass defaults into the timeline so all child tweens inherit:
41 
42```javascript
43const tl = gsap.timeline({ defaults: { duration: 0.5, ease: "power2.out" } });
44tl.to(".a", { x: 100 }).to(".b", { y: 50 }); // both use 0.5s and power2.out
45```
46 
47## Timeline Options (constructor)
48 
49- **paused: true** — create paused; call `.play()` to start.
50- **repeat**, **yoyo** — same as tweens; apply to whole timeline.
51- **onComplete**, **onStart**, **onUpdate** — timeline-level callbacks.
52- **defaults** — vars merged into every child tween.
53 
54## Labels
55 
56Add and use labels for readable, maintainable sequencing:
57 
58```javascript
59tl.addLabel("intro", 0);
60tl.to(".a", { x: 100 }, "intro");
61tl.addLabel("outro", "+=0.5");
62tl.to(".b", { opacity: 0 }, "outro");
63tl.play("outro"); // start from "outro"
64tl.tweenFromTo("intro", "outro"); // pauses the timeline and returns a new Tween that animates the timeline's playhead from intro to outro with no ease.
65```
66 
67## Nesting Timelines
68 
69Timelines can contain other timelines.
70 
71```javascript
72const master = gsap.timeline();
73const child = gsap.timeline();
74child.to(".a", { x: 100 }).to(".b", { y: 50 });
75master.add(child, 0);
76master.to(".c", { opacity: 0 }, "+=0.2");
77```
78 
79## Controlling Playback
80 
81- **tl.play()** / **tl.pause()**
82- **tl.reverse()** / **tl.progress(1)** then **tl.reverse()**
83- **tl.restart()** — from start.
84- **tl.time(2)** — seek to 2 seconds.
85- **tl.progress(0.5)** — seek to 50%.
86- **tl.kill()** — kill timeline and (by default) its children.
87 
88## Official GSAP Best practices
89 
90- ✅ Prefer timelines for sequencing
91- ✅ Use the **position parameter** (third argument) to place tweens at specific times or relative to labels.
92- ✅ Add **labels** with `addLabel()` for readable, maintainable sequencing.
93- ✅ Pass **defaults** into the timeline constructor so child tweens inherit duration, ease, etc.
94- ✅ Put ScrollTrigger on the timeline (or top-level tween), not on tweens inside a timeline.
95 
96## Do Not
97 
98- ❌ Chain animations with **delay** when a **timeline** can sequence them; prefer `gsap.timeline()` and the position parameter for multi-step animation.
99- ❌ Forget to pass **defaults** (e.g. `defaults: { duration: 0.5, ease: "power2.out" }`) when many child tweens share the same duration or ease.
100- ❌ Forget that **duration** on the timeline constructor is not the same as tween duration; timeline “duration” is determined by its children.
101- ❌ Nest animations that contain a ScrollTrigger; ScrollTriggers should only be on top-level Tweens/Timelines.

Security

Passed

  • Gen Agent Trust Hubpass
  • Socketpass
  • Snykpass
  • ZeroLeakspass

Preview

greensock/gsap-skillsgreensock/gsap-skills

$ npx -y skills add greensock/gsap-skills --skill gsap-timeline

▸ installing to .claude/skills…

✓ gsap-timeline ready

Repogreensock/gsap-skills
TypeSkills
CategoryFrontend Development
ForDeveloper
UpdatedApr 2026
License—
First seenJul 26, 2026

Tags

Skill

Related

6 picks
Type
  1. vercel-labs avatarreact-best-practicesReact and Next.js performance optimization guidelines from Vercel Engineering.SkillsJul 2026587k29k
  2. heygen-com avatarhyperframes-registryInstall, discover, and wire registry blocks and components into HyperFrames compositions.SkillsJul 2026267k38k
  3. vercel-labs avatarcomposition-patternsReact composition patterns that scale. Use when refactoring components with boolean prop proliferation, building flexible component libraries, or designing…SkillsJul 2026266k29k
  4. shadcn avatarshadcnManages shadcn components and projects — adding, searching, fixing, debugging, styling, and composing UI, including chat interfaces.SkillsJul 2026257k120k
  5. larksuite avatarlark-apps妙搭(Spark/Miaoda)应用开发与托管:应用创建、本地全栈开发、云端生成迭代、创意设计(UI mockup / 可交互原型 / 线框图 / 落地页 / 仪表盘 / 幻灯片 deck / 视觉探索)、AI相关能力和飞书平台能力或者其他外部能力集成、日志/Trace/监控指标/PV/UV…SkillsJul 2026235k16k
  6. leonxlnx avatarimage-to-code-skillElite website image-to-code skill for Codex. For visually important web tasks, it must first generate the design image(s) itself, deeply analyze them, then…SkillsJul 2026175k68k