gsap-timeline

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

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

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 into timelines, so multi-step animations stay readable, controllable, and easy to adjust. ## Core Features & Use Cases - Timeline creation and sequencing: Build timelines with gsap.timeline(), append tweens in order, and control placement with the position parameter (absolute times, relative offsets, labels, < and > placement). - Labels, defaults, and nesting: Add labels with addLabel(), share defaults across child tweens, and nest child timelines inside a master timeline for modular choreography. - Playback control: Play, pause, reverse, restart, seek with time() and progress(), and play between labels with tweenFromTo(). - Use Case: A landing page hero needs the headline to slide in, the image to fade up 0.2s later, and a CTA to scale in at the same time as the image. Build one timeline with labels and position parameters instead of juggling three delayed tweens. ## Quick Start Create a GSAP timeline that fades in my header, then slides the hero image up 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 instead of chaining delays.

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

The position parameter is the third argument of timeline methods and 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 timelines inside other GSAP timelines?

Yes, timelines can contain other timelines via master.add(child, position). This lets you build modular animation sequences and compose them into a master timeline, though ScrollTriggers should only go on top-level timelines.

How do I play a GSAP timeline between two labels?

Use tl.tweenFromTo("intro", "outro") to animate the playhead from one label to another. Add labels with tl.addLabel("name", position) and jump to them with tl.play("labelName").

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

Prefer a timeline over chained delays for multi-step animation. Timelines give you sequencing, labels, shared defaults, and full playback control, while delay-based chains are brittle and hard to maintain.