gsap-timeline

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

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

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 timeline patterns for sequencing tweens in order or in parallel, so animations stay readable, controllable, and easy to adjust. ## Core Features & Use Cases - Timeline Sequencing: Create 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 choreography, constructor defaults for shared duration and ease, and nested timelines for modular animation structure. - Playback Control: Play, pause, reverse, restart, seek with time() or progress(), and animate between labels with tweenFromTo(). - Use Case: When building a landing page hero intro where a logo fades in, text slides up, and a button scales in with overlap, define one timeline with labels and position parameters instead of stacking setTimeout or delay values. ## Quick Start Ask the assistant to build a GSAP timeline that fades in a header, slides up a subtitle 0.2 seconds before the header finishes, and then reveals a call-to-action button using labels and the position parameter.

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 add tweens with .to(); they play 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 position parameter do in GSAP timelines?▼

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

Can I nest timelines inside other GSAP timelines?▼

Yes, timelines can contain other timelines using master.add(child, position). This lets you build modular animation sections and compose them into a master timeline, but nested animations must not contain ScrollTriggers.

How do I play only part of a GSAP timeline?▼

Use labels added with addLabel() and call tl.play("labelName") to start from that point, or tl.tweenFromTo("intro", "outro") to animate the playhead between two labels. You can also seek with tl.time(2) or tl.progress(0.5).

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

Use a timeline instead of chaining delays. Timelines with the position parameter give precise, maintainable sequencing, while chained delay values break easily when any single animation duration changes.

Where should ScrollTrigger go when using GSAP timelines?▼

Put ScrollTrigger on the timeline itself or on a top-level tween, never on tweens nested inside a timeline. ScrollTriggers inside nested animations cause conflicting control over playback.