react-motion-engineering
Skill1 starsChanged 3 months agoMITView on GitHub
Implement and review animation in React/Next.js with a CSS-first approach and GSAP for complex timelines, scroll-driven animation, SVG, drag, or high-frequency motion. Use when animation, motion, GSAP, ScrollTrigger, timelines, or reduced-motion behavior is part of the task.
In this repository5 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- react-component-engineeringSkill
- react-production-engineeringSkill
- react-quality-engineeringSkill
The file
We split this skill into the rules it gives an agent
9 rules. About 0 are common, 9 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈9
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 21
no animation when it adds no meaning.
- Distinctive: line 26
Do not add GSAP for a basic hover/fade.
- Distinctive: line 33
Keep animation ownership aligned with component ownership and cleanup lifecycle.
- Distinctive: line 34
Prefer transform/opacity for continuous animation and measure expensive effects.
- Distinctive: line 35
Verify keyboard/touch behavior and multiple responsive layouts.
- Distinctive: line 36
Test on realistic lower-powered/mobile hardware for important motion.
- Distinctive: line 42
Do not use scroll-jacking for ordinary content navigation.
- Distinctive: line 43
Do not create a new tween on every pointer event in a high-frequency path.
- Distinctive: line 45
Do not make animation callbacks the only mechanism that completes business-critical state.
≈ “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.
Files
React Motion Engineering
Motion is a usability tool. It must not compromise accessibility, lifecycle correctness, responsiveness, or frame performance.
Apply react-production-engineering and react-component-engineering alongside this skill.
Tool hierarchy
Choose the simplest tool that communicates the state change:
- no animation when it adds no meaning;
- CSS transitions/keyframes for simple transitions;
- Web Animations API when appropriate to the existing stack;
- GSAP for complex sequencing, scroll linkage, SVG, drag, or high-frequency interactive animation.
Do not add GSAP for a basic hover/fade.
Workflow
- Define the purpose of the motion and the no-animation fallback.
- Determine reduced-motion behavior before implementation.
- Choose CSS/platform/GSAP based on complexity.
- Keep animation ownership aligned with component ownership and cleanup lifecycle.
- Prefer transform/opacity for continuous animation and measure expensive effects.
- Verify keyboard/touch behavior and multiple responsive layouts.
- Test on realistic lower-powered/mobile hardware for important motion.
Non-negotiable rules
- Respect
prefers-reduced-motionfor non-essential motion. - Content and controls must remain usable when animation is disabled or fails.
- Do not use scroll-jacking for ordinary content navigation.
- Do not create a new tween on every pointer event in a high-frequency path.
- Clean up timelines, observers, listeners, and ScrollTrigger instances when their owner unmounts.
- Do not make animation callbacks the only mechanism that completes business-critical state.
- Hover animation must not be the only interaction feedback; preserve focus/touch/selected states.
When to load references
- GSAP + React lifecycle: references/gsap-react.md
- Reduced motion: references/reduced-motion.md
- Scroll motion: references/scroll-animation.md
- Animation performance: references/performance.md
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
Reviews can't be read right now.
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.

