In the Skill's Own Terms
This skill implements production-grade scroll animations using GSAP ScrollTrigger and Framer Motion. It covers parallax effects, scroll-triggered reveals, pinned sections, horizontal scroll, and text animations for vanilla JavaScript, React, and Next.js projects. The skill includes a Quick Library Selector to choose between GSAP (for vanilla JS, Webflow, Vue, pinning, and complex timelines) and Framer Motion (for React/Next.js declarative style).
It provides ready-to-use code recipes, full API references in separate reference files, and Copilot prompting patterns. The skill pairs with the premium-frontend-ui skill, which provides the creative philosophy and design principles that guide when and why to animate.
What it produces
- Production-grade scroll animations with ready-to-use code recipes
How It Works
- 01Interpret Intent and Choose Library
The skill first identifies whether GSAP or Framer Motion is the best fit based on the user's request and project context.
- 02Read Reference Documentation
The relevant reference document in the references directory is consulted for detailed APIs and implementation patterns.
- 03Suggest Package Installation
The required npm packages are suggested if they are not already present in the project.
- 04Implement Animation Scaffold
The animation structure is scaffolded in the requested format, whether React components, hooks, or vanilla JavaScript.
- 05Apply Tools with Accessibility
The correct scrolling or in-view tools are applied, ensuring accessibility options are present and hooks do not cause infinite re-renders.