gsap-timeline
Official GSAP skill for timelines — gsap.timeline(), position parameter, nesting, playback.
Skill by phamTuan207
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/phamtuan207-gsap-timeline
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions: not checked yet.
What's inside
- Skill name
gsap-timeline- Description
- 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).
- License
- MIT
- Instructions
- 103 lines in SKILL.md · view on GitHub
Files (1)
- SKILL.md
SKILL.md (first lines)
# GSAP Timeline
## When to Use This Skill
Apply 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.
**Related skills:** For single tweens and eases use **gsap-core**; for scroll-driven timelines use **gsap-scrolltrigger**; for React use **gsap-react**.
## Creating a Timeline
```javascript
const tl = gsap.timeline();
tl.to(".a", { x: 100, duration: 1 })
.to(".b", { y: 50, duration: 0.5 })
.to(".c", { opacity: 0, duration: 0.3 });
```
By default, tweens are **appended** one after another. Use the **position parameter** to place tweens at specific times or relative to other tweens.
## Position Parameter
Third argument (or position property in vars) controls placement:
- **Absolute**: `1` — start at 1 second.
- **Relative (default)**: `"+=0.5"` — 0.5s after end; `"-=0.2"` — 0.2s before end.
- **Label**: `"labelName"` — at that label; `"labelName+=0.3"` — 0.3s after label.
- **Placement**: `"<"` — start when recently-added animation starts; `">"` — start when recently-added animation ends (default); `"<0.2"` — 0.2s after recently-added animation start.
Examples:
```javascript
tl.to(".a", { x: 100 }, 0); // at 0
tl.to(".b", { y: 50 }, "+=0.5"); // 0.5s after last end
tl.to(".c", { opacity: 0 }, "<"); // same start as previous
tl.to(".d", { scale: 2 }, "<0.2"); // 0.2s after previous start
```
## Timeline Defaults
Pass defaults into the timeline so all child tweens inherit:
```javascript
const tl = gsap.timeline({ defaults: { duration: 0.5, ease: "power2.out" } });
tl.to(".a", { x: 100 }).to(".b", { y: 50 }); // both use 0.5s and power2.out
```
## Timeline Options (constructor)
- **paused: true** — create paused; call `.play()` to start.
- **repeat**, **yoyo** — same as tweens; apply to whole timeline.
- **onComplete**, **onStart**, **onUpdate** — timeline-level callbacks.
- **defaults** — vars merged into every child tween.
## Labels
Add and use labels for readable, maintainable sequencing:
```javascript
tl.addLabel("intro", 0);
tl.to(".a", { x: 100 }, "intro");
tl.addLabel("outro", "+=0.5");
tl.to(".b", { opacity: 0 }, "outro");
tl.play("outro"); // start from "outro"
tl.tweenFromTo("intro", "outro"); // pauses the timeline and returns a new Tween that animates the timeline's playhead from intro to outro with no ease.
```
## Nesting Timelines
Timelines can contain other timelines.
```javascript
const master = gsap.timeline();
const child = gsap.timeline();
child.to(".a", { x: 100 }).to(".b", { y: 50 });
master.add(child, 0);
master.to(".c", { opacity: 0 }, "+=0.2");
```
## Controlling Playback
- **tl.play()** / **tl.pause()**
- **tl.reverse()** / **tl.progress(1)** then **tl.reverse()**
- **tl.restart()** — from start.
- **tl.time(2)** — seek to 2 seconds.
- **tl.progress(0.5)** — seek to 50%.
- **tl.kill()** — kill timeline and (by default) its children.
## Official GSAP Best practices
- ✅ Prefer timelines for sequencing
- ✅ Use the **position parameter** (third argument) to place tweens at specific times or relative to labels.
- ✅ Add **labels** with `addLabel()` for readable, maintainable sequencing.
- ✅ Pass **defaults** into the timeline constructor so child tweens inherit duration, ease, etc.
- ✅ Put ScrollTrigger on the timeline (or top-level tween), not on tweens inside a timeline.
## Do Not
- ❌ Chain animations with **delay** when a **timeline** can sequence them; prefer `gsap.timeline()` and the position parameter for multi-step animation.
- ❌ Forget to pass **defaults** (e.g. `defaults: { duration: 0.5, ease: "power2.out" }`) when many child tweens share the same duration or ease.
- ❌ Forget that **duration** on the timeline constructor is not the same as tween duration; timeline “duration” is determined by its children.
- ❌ Nest animations that contain a ScrollTrigger; ScrollTriggers should only be on top-level Tweens/Timelines.From phamTuan207/frontend-agent-kit, MIT.
More from phamTuan207/frontend-agent-kit
- 0.559score
taste-reference
phamTuan207
Consult Taste Skill only when the user explicitly asks for a Taste-based visual direction, second opinion, or comparison with the current frontend design.
SkillAFreshness: AClaude Code +9 - 0.559score
ui-ux-pro-max-reference
phamTuan207
Consult the local UI UX Pro Max library when the user explicitly asks for Pro Max style, palette, typography, chart, or UX references or alternatives.
SkillAFreshness: AClaude Code +9 - 0.540score
impeccable
phamTuan207
Use when the user wants to design, redesign, shape, critique, audit, polish, clarify, distill, harden, optimize, adapt, animate, colorize, extract, or…
SkillAFreshness: AClaude Code +9 - 0.536score
impeccable
phamTuan207
Use when the user wants to design, redesign, shape, critique, audit, polish, clarify, distill, harden, optimize, adapt, animate, colorize, extract, or…
SkillAFreshness: AClaude Code +9 - 0.534score
threeui
phamTuan207
Use when the user asks to browse, install, adapt, or integrate a ThreeUI component from Meng To's ThreeUI catalog into a frontend.
SkillAFreshness: AClaude Code +9
Signals
- Stars
- 0
- Forks
- 0
- Open issues
- 0
- Last commit (this folder)
- Oct 10, 2026 (19 days ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
Same skill elsewhere
Copies of this SKILL.md published by others; search shows only one of them.
- 0.683score
gsap-timeline
greensock
Official GSAP skill for timelines — gsap.timeline(), position parameter, nesting, playback.
SkillDFreshness: D★ 17KClaude Code +9 - 0.378score
gsap-timeline
12-Studio
Official GSAP skill for timelines — gsap.timeline(), position parameter, nesting, playback.
SkillAFreshness: A★ 10Claude Code +9 - 0.339score
gsap-timeline
NachikethReddyY
Official GSAP skill for timelines — gsap.timeline(), position parameter, nesting, playback.
SkillAFreshness: AClaude Code +9 - 0.335score
gsap-timeline
Vinayak-RZ
Official GSAP skill for timelines — gsap.timeline(), position parameter, nesting, playback.
SkillBFreshness: B★ 2Claude Code +9 - 0.322score
gsap-timeline
imMamdouhaboammar
Official GSAP skill for timelines — gsap.timeline(), position parameter, nesting, playback.
SkillAFreshness: A★ 33Claude Code +9 - 0.322score
gsap-timeline
imMamdouhaboammar
Official GSAP skill for timelines - gsap.timeline(), position parameter, nesting, playback.
SkillAFreshness: A★ 33Claude Code +9 - 0.285score
gsap-timeline
eivmosn
Official GSAP skill for timelines — gsap.timeline(), position parameter, nesting, playback.
SkillCFreshness: CClaude Code +9
More from phamTuan207
- 0.559score
taste-reference
phamTuan207
Consult Taste Skill only when the user explicitly asks for a Taste-based visual direction, second opinion, or comparison with the current frontend design.
SkillAFreshness: AClaude Code +9 - 0.559score
ui-ux-pro-max-reference
phamTuan207
Consult the local UI UX Pro Max library when the user explicitly asks for Pro Max style, palette, typography, chart, or UX references or alternatives.
SkillAFreshness: AClaude Code +9 - 0.540score
impeccable
phamTuan207
Use when the user wants to design, redesign, shape, critique, audit, polish, clarify, distill, harden, optimize, adapt, animate, colorize, extract, or…
SkillAFreshness: AClaude Code +9 - 0.536score
impeccable
phamTuan207
Use when the user wants to design, redesign, shape, critique, audit, polish, clarify, distill, harden, optimize, adapt, animate, colorize, extract, or…
SkillAFreshness: AClaude Code +9 - 0.534score
threeui
phamTuan207
Use when the user asks to browse, install, adapt, or integrate a ThreeUI component from Meng To's ThreeUI catalog into a frontend.
SkillAFreshness: AClaude Code +9
Cite this page
gsap-timeline skill. Agent Mart. https://agentmart.dev/skills/phamtuan207-gsap-timeline (last updated 2026-10-24)