gsap-timeline

Sequences GSAP tweens into timelines using position parameters, labels, and nesting.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires gsap.

What problem does it solve? Coordinating multiple animations with chained delays is fragile and hard to maintain. This Skill provides the official GSAP patterns for sequencing tweens with gsap.timeline(), so multi-step animations stay readable, controllable, and easy to adjust. ## Core Features & Use Cases - Timeline Sequencing: Create timelines that append tweens in order and place them precisely with the position parameter (absolute times, relative offsets, labels, and "<"/">" placement). - Labels, Defaults & Nesting: Use addLabel() for readable sequencing, constructor defaults so child tweens inherit duration and ease, and nest child timelines inside a master timeline. - Playback Control: Play, pause, reverse, restart, seek with time() or progress(), and use tweenFromTo() to animate between labels. - Use Case: When a user asks to choreograph a hero-section intro where a logo fades in, a headline slides up 0.2s later, and a CTA button scales in at the same time, this Skill produces a single timeline with labels and position parameters instead of stacked setTimeout or delay hacks. ## Quick Start Ask the AI to build a GSAP timeline that fades in a header, then slides up a subtitle 0.3 seconds later, with both tweens sharing a default ease.

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 does the GSAP position parameter do?▼

The position parameter controls when a tween starts inside a timeline. It accepts absolute times like 1, relative offsets like "+=0.5" or "-=0.2", label names, and placement shortcuts like "<" (start with previous) and ">" (after previous).

Can I nest GSAP timelines inside other timelines?▼

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

Should I use delay or a timeline for multi-step GSAP animations?▼

Prefer a timeline over chained delays for multi-step animations. Timelines keep sequencing explicit with the position parameter and labels, making the animation easier to adjust, replay, and control than scattered delay values.

Can I put ScrollTrigger on tweens inside a GSAP timeline?▼

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