Codex Skill for GSAP ScrollTrigger in React
Use Codex with focused GSAP ScrollTrigger, React cleanup and performance guidance for pinned, scrubbed and responsive scroll animation.
Combine ScrollTrigger behavior with React-safe lifecycle cleanup and a performance budget from the start.
A scroll animation can work once and still fail in a React application. Triggers must be scoped, refreshed and cleaned up as components mount, resize and unmount.
Who this guide is for
React and Next.js developers building pinned sections, scrubbed sequences, parallax or scroll-linked storytelling.
- Choose start, end, scrub and pin behavior deliberately.
- Scope animation state to the component lifecycle.
- Provide responsive and reduced-motion behavior without duplicate triggers.
Which skills fit this job?
Start with the narrowest option that covers the full output. The package is useful when the workflow regularly crosses several specialisms.

Scroll behavior
Gsap Scrolltrigger Agent Skill
Covers triggers, pinning, scrubbed motion, parallax and scroll-linked animation decisions.
Claude Code, Codex, Cursor and compatible code-execution agents.

React lifecycle
Gsap React Agent Skill
Uses useGSAP, refs and gsap.context so animations clean up when components change.

Performance guard
Gsap Performance Agent Skill
Prioritizes transforms, batching and layout-safe animation to reduce jank.
Compare the options
| Option | Best use | Price | Contents | Runtime |
|---|---|---|---|---|
| Gsap Scrolltrigger Agent Skill | Scroll behavior | £8.00 | 7 files | Claude Code, Codex, Cursor and compatible code-execution agents. |
| Gsap React Agent Skill | React lifecycle | £8.00 | 7 files | Claude Code, Codex, Cursor and compatible code-execution agents. |
| Gsap Performance Agent Skill | Performance guard | £8.00 | 7 files | Claude Code, Codex, Cursor and compatible code-execution agents. |
A practical workflow
Define the scroll contract
Write the trigger element, start and end positions, pinning needs and behavior on smaller screens.
Implement inside React scope
Create the animation with stable refs and context so every trigger and listener is reverted on cleanup.
Test resize and motion preferences
Exercise route changes, responsive breakpoints, refresh behavior and reduced-motion fallbacks in a browser.
Where this approach stops
Keep this boundary visible
Do not add pinning to compensate for weak page structure. Pinned regions should carry a real sequence and must not trap keyboard or mobile users.
Questions before you choose
Why pair ScrollTrigger with a React-specific skill?
ScrollTrigger owns scroll behavior, while the React skill prevents lifecycle leaks and stale animation state when components rerender or unmount.
Can the animation be disabled for reduced motion?
Yes. Define a reduced-motion branch that removes nonessential movement while preserving content and interaction.
RankThread is independent and is not affiliated with or endorsed by Anthropic, OpenAI, Expo, Shopify, GreenSock, Google or the other vendors referenced for compatibility. Product pages contain source and licence details.
