gsap-timeline

Sequences and choreographs GSAP animations using timelines, labels, and the position parameter.

Updated Aug 12, 2026
One-click install
npx skills add https://github.com/brunoolf/frontend-craft --skill gsap-timeline-brunoolf
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: gsap-timeline
Source: https://github.com/brunoolf/frontend-craft/tree/main/skills/gsap-timeline
Command: npx skills add https://github.com/brunoolf/frontend-craft --skill gsap-timeline-brunoolf

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires gsap.

What problem does it solve? Coordinating multiple animations with chained delays becomes fragile and unreadable as sequences grow. This Skill provides the official GSAP timeline patterns for sequencing tweens in order or in parallel, so multi-step animations stay maintainable and easy to control. ## Core Features & Use Cases - Timeline creation and sequencing: Build timelines with gsap.timeline() and place tweens using the position parameter (absolute times, relative offsets, labels, "<" and ">" placement). - Labels, defaults, and nesting: Use addLabel() for readable sequencing, constructor defaults so child tweens inherit duration and ease, and nest timelines inside master timelines. - Playback control: Play, pause, reverse, restart, seek with time() and progress(), and use tweenFromTo() to animate between labels. - Use Case: When building a hero section intro where a logo fades in, text slides up, and a button scales in with overlap, create one timeline with labels and position parameters instead of stacking setTimeout or delay values. ## Quick Start Ask the AI to build a GSAP timeline that fades in a header, slides up the content 0.2 seconds later, and plays in reverse on click.

Frequently Asked Questions about gsap-timeline

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I sequence multiple GSAP animations in order?▼

Create a timeline with gsap.timeline() and chain .to() calls; tweens run one after another by default. Use the position parameter as the third argument to overlap or offset tweens, such as "+=0.5" or "<".

What is the GSAP position parameter and how does it work?▼

The position parameter is the third argument of timeline methods that controls when a tween starts. It accepts absolute times like 1, relative offsets like "+=0.5" or "-=0.2", label names, and "<" or ">" to align with the previous tween's start or end.

Can I nest GSAP timelines inside other timelines?▼

Yes, timelines can contain other timelines. Build a child timeline, then add it to a master timeline with master.add(child, position) to compose complex sequences from reusable parts.

Should I put ScrollTrigger on tweens inside a timeline?▼

No, ScrollTrigger should only be attached to the top-level timeline or tween, never to tweens nested inside a timeline. Nested ScrollTriggers conflict with the parent timeline's control of its children.

Why use a GSAP timeline instead of chaining delays?▼

Chained delays break when any step's duration changes and offer no unified playback control. A timeline lets you seek, reverse, pause, and reposition tweens with labels and the position parameter, keeping sequences maintainable.