skills.vishalvoidskills/vishalvoid
Creative & DesignIntermediate

gsap-timeline

Timelines with sequencing, position parameter, labels, nesting, and...

Developer Setup

Setup & Installation

bash
npx skills add https://github.com/greensock/gsap-skills --skill gsap-timeline

Overview

What This Skill Does

Timelines with sequencing, position parameter, labels, nesting, and playback control

Application

When to use this Skill

Documentation

Show Skills.md file

GSAP Timeline

When to Use This Skill

Apply when building multi-step animations, coordinating several tweens in sequence or parallel, or when the user asks about timelines, sequencing, or keyframe-style animation in GSAP.

Related skills: For single tweens and eases use gsap-core; for scroll-driven timelines use gsap-scrolltrigger; for React use gsap-react.

Creating a Timeline

const tl = gsap.timeline();
tl.to(".a", { x: 100, duration: 1 })
  .to(".b", { y: 50, duration: 0.5 })
  .to(".c", { opacity: 0, duration: 0.3 });

By default, tweens are appended one after another. Use the position parameter to place tweens at specific times or relative to other tweens.

Position Parameter

Third argument (or position property in vars) controls placement:

  • Absolute: 1 — start at 1 second.
  • Relative (default): "+=0.5" — 0.5s after end; "-=0.2" — 0.2s before end.
Lines 1 - 25 of 101

Recommendations

Explore other random skills

All skillsMy patterns