Agent skill

GSAP Timeline Skill: Sequencing Rules for AI Agents

The gsap-timeline skill teaches an AI coding agent to sequence animation with GSAP timelines, the position parameter, labels, nesting and playback control instead of chained delays.

Install
git clone https://github.com/greensock/gsap-skills.git
View on GitHub

Stars, license and last push from GitHub. Install count as reported by the open skills directory.

What is the gsap-timeline skill?

gsap-timeline is an official SKILL.md in the greensock/gsap-skills repository for multi-step GSAP animation. It teaches an AI coding agent to build gsap.timeline() sequences with the position parameter, labels, defaults and nesting, and to avoid chaining delay values or putting ScrollTrigger on child tweens.

gsap-timeline is the sequencing skill in the official greensock/gsap-skills set. It is a short SKILL.md that applies when an agent builds multi-step animation, coordinates several tweens, or answers questions about timelines and keyframe-style motion.

It sits beside gsap-core, which covers single tweens. The skill says to use gsap-core for eases and tweens, gsap-scrolltrigger for scroll-driven timelines and gsap-react for React.

What changes in your agent's output

  • Steps in a sequence live in one gsap.timeline() instead of separate tweens with growing delay values.
  • Timing uses the position parameter: an absolute number, +=0.5, -=0.2, a label, or < and > to align with the previous tween.
  • Shared duration and ease go into the timeline's defaults object so child tweens inherit them.
  • Named moments use addLabel(), which keeps long sequences readable and lets you start playback from a label.
  • A ScrollTrigger sits on the timeline or a top-level tween, never on a tween inside the timeline.

What the skill covers

It documents timeline constructor options (paused, repeat, yoyo, callbacks and defaults), nesting one timeline inside another with add(), and playback methods such as play, reverse, restart, time, progress and kill.

It also warns that a timeline's duration comes from its children, so a duration passed to the constructor is not the same as a tween duration.

Who the gsap-timeline skill is for

Best for

  • Hero intros, loaders and onboarding sequences with several coordinated steps.
  • Agents that stack delay: 1.2, delay: 1.5 and so on, then break when one duration changes.
  • Animations you need to pause, reverse, seek or restart from code.

Not for