Skip to content
G

greensock/gsap-react

React integration with useGSAP hook, refs, gsap.context(), cleanup, and SSR

Open source

Star
#12740in AI Skills
0In stores

Description

gsap-react is an agent skill from the GSAP project that covers GSAP animation setup in React and Next.js. It uses the useGSAP hook, gsap.con…

Highlights

  • useGSAP hook for React and Next.js
  • Automatic cleanup on unmount
  • Scoped selectors and ref-based targeting
  • contextSafe for click handlers
  • SSR-safe setup

Ratings & Reviews

No ratings yet

Be the first to rate greensock/gsap-react.

People also visit

G

gsap-react

Official GSAP skill for React — useGSAP hook, refs, gsap.context(), cleanup

AI Skills
Get
G

gsap-react

GSAP in React/Next.js with the useGSAP hook and cleanup

AI Skills
Get
G

gsap-skills (repo)

Official GSAP guidance: patterns, plugins and best practices

AI Skills
Get
G

gsap-frameworks

GSAP animation setup for Vue, Svelte, Nuxt, and other component frameworks

AI Skills
Get
G

gsap-frameworks

Official GSAP skill for Vue, Svelte, and other non-React frameworks

AI Skills
Get
G

greensock/gsap-frameworks

Vue, Svelte, and other frameworks with lifecycle, scoping, and cleanup patterns

AI Skills
Get

greensock/gsap-react FAQ

What does gsap-react cover?

GSAP setup in React and Next.js using the useGSAP hook, gsap.context() and refs.

How do I install it?

Run npx skills add https://github.com/greensock/gsap-skills --skill gsap-react.

Why use useGSAP instead of useEffect?

The page says it removes manual ctx.revert() calls and prevents animation leaks and stale-node warnings.

Does it work with Next.js server rendering?

The page says it covers SSR safety so animations do not error during server render.

Who publishes it?

The GSAP project, in its gsap-skills repository on GitHub. The page lists the skill as community.

What are the best greensock/gsap-react alternatives?

Popular alternatives to greensock/gsap-react include gsap-react, gsap-react and gsap-skills (repo). See all greensock/gsap-react alternatives

Developer Stuff

Badges