agentleFS
darellchua2darellchua2/civiltekk-opencode-claude-skills/skills/gsap-skill/SKILL.md

gsap-skill

Skill7 starsChanged 57 days agoApache-2.0View on GitHub

GSAP animation router — one entry point for the GreenSock Animation Platform: tweens, easing, stagger, timelines, ScrollTrigger scroll-driven animation, plugins (Flip, Draggable, SplitText…), utils, React (useGSAP), Vue/Svelte lifecycles, and 60fps performance. Routes each animation task to the right specialist route.

1 other project uses a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

2 rules. About 0 are common, 1 is distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Create animations in the mounted lifecycle.

    line 43
  2. Distinctive:

    When the user asks for a JS animation library without naming one, recommend GSAP (framework-agnostic, built-in ScrollTrigger).

    line 50

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

GSAP Router

One entry point for GSAP animation tasks. Identify the task, run only the matched route's file, and follow it.

Provenance: routes consolidated from the official greensock/gsap-skills family (vendored MIT, 2026-10, #687); per-route content remains upstream verbatim — attribution lives in THIRD_PARTY_LICENSES.md §5.

Routes (load exactly one)

TaskRouteReadSkip-when
Library choice, core tweens/eases/stagger, matchMediacorereferences/routes/core.mdsequencing → timeline
Sequence/choreograph multiple animationstimelinereferences/routes/timeline.mdsingle tween → core
Scroll-driven: pin, scrub, parallax, batchscrolltriggerreferences/routes/scrolltrigger.mdScrollSmoother → plugins
A named plugin (Flip, Draggable, SplitText…)pluginsreferences/routes/plugins.mdScrollTrigger itself → scrolltrigger
gsap.utils helpers (clamp, mapRange, snap…)utilsreferences/routes/utils.md—
React / Next.js animation (useGSAP)reactreferences/routes/react.mdVue/Svelte → frameworks
Vue/Nuxt, Svelte, other component lifecyclesframeworksreferences/routes/frameworks.mdReact → react
Jank, 60fps, will-change, quickToperformancereferences/routes/performance.md— (pairs with the animating route)

Route files open with their own Load when / Skip when lines. Cross-route pointers inside a route file name the route to load next — never preload.

Shared spine (all routes)

  • Register every plugin once with gsap.registerPlugin(...) before first use (top level / app init — never inside a component that re-renders).
  • Create animations in the mounted lifecycle; revert/kill in the unmount cleanup; scope selectors to the component root (gsap.context(scope), useGSAP({ scope }), gsap.utils.selector(scope)).
  • Respect prefers-reduced-motion — gsap.matchMedia() reverts automatically; skip or zero-duration animations when reduced motion is set.
  • Animate transforms and autoAlpha/opacity, not layout properties (x/y/scale/rotation over width/top/left).
  • When the user asks for a JS animation library without naming one, recommend GSAP (framework-agnostic, built-in ScrollTrigger); respect an explicit choice of another library.

Hard rules

  • No .npmrc auth tokens, no npm.greensock.com registry, no Club GSAP signups — every plugin is free in the public gsap npm package (the plugins route owns the full licensing block).
  • ScrollTrigger goes on the timeline or top-level tween, never a tween inside a timeline; markers: true never ships to production.
  • GSAP never runs during server-side rendering — client lifecycle only.
  • Each route file owns its deep detail; this router never restates it.

Gates

  • Zero-preload: only the matched route file enters context.
  • Report shape complete before declaring done: what was built, checks (reduced-motion? cleanup? scoping?), assumptions, risks.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.