Skip to content
SkillModel-led1,531 tokens in use

GSAP React

Use GSAP in React and Next.js with the useGSAP hook, refs and automatic cleanup.

18,822 stars on the repository MIT Licensegreensock/gsap-skills · skills/gsap-react
npx skills add https://github.com/greensock/gsap-skills
View source

Install command as written in the repository's README

Skill label

measured from its files

What installing GSAP React costs

68tokens idle
1,531tokens in use

Idle is what sits in context while the skill is installed. In use is its instructions, loaded when it runs. Counts are approximate, made offline with cl100k_base.

Model dependence Model-led

Script-ledMixedModel-led

Mostly instructions, so how well it works depends on the model that follows them.

This describes the skill's structure, how much of it is scripts. It does not say how well it works.

Touches

shelldetectednetworkdetected

Declared tags come from the skill's frontmatter; detected ones from its scripts, its code blocks and the commands it names in inline code. This is detected, not audited.

How it scores

Quality

How well the skill is written, counted from its own files: its frontmatter, its steps, examples, stated output and constraints, its size and whether every file it ships is one it names.How we score it →
Good
  • Frontmatter15/15
  • Structure9/25
  • Examples9/15
  • Output10/15
  • Size15/15
  • Resources10/15

Security

Starts at 100 and loses points for each thing in the skill's files that a reader should look at first.How we score it →
Excellent
  • Reaches the network−10

    does this on the machine, and the frontmatter does not say so

    SKILL.md, line 19
  • Runs shell commands−5

    does this on the machine, and the frontmatter does not say so

    SKILL.md, line 19

Repository health

Pre-computed score based on development activity, maintenance, community, maturity, and trend momentum.How we score it →
Needs attention
  • Development activity12
  • Maintenance0
  • Community52
  • Maturity32
  • Momentum40

GSAP React is the official GreenSock skill for animating in React and Next.js. It covers installing gsap and @gsap/react, the useGSAP hook, refs as targets, dependency arrays, scope and revertOnUpdate, and gsap.context inside useEffect.

It also explains context-safe callbacks and server-side rendering.

What You Get

  • Install commands for gsap and @gsap/react
  • Patterns for useGSAP, refs, scope and dependencies
  • Notes on SSR in Next.js and context-safe callbacks

Common Use Cases

  • Animating a React component on mount
  • Cleaning up animations on unmount
  • Using GSAP in a Next.js app

What Makes It Unique

It centers on the useGSAP hook from GreenSock, which handles cleanup for you, and keeps gsap.context in useEffect as the fallback.

Under The Hood

The skill is a single SKILL.md with no scripts. It tells the assistant to run npm install for gsap and @gsap/react, then write component code. It reaches no network on its own.

Join founders building with open source

Opinionated takes, migration guides, cost-saving tips, and insights from the open source ecosystem.

Subscribe on SubstackJoin 750+ subscribers