agentleFS
Taimoorkhan1122Taimoorkhan1122/boring-react/skills/react-motion-engineering/SKILL.md

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.

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
  1. Distinctive:

    no animation when it adds no meaning.

    line 21
  2. Distinctive:

    Do not add GSAP for a basic hover/fade.

    line 26
  3. Distinctive:

    Keep animation ownership aligned with component ownership and cleanup lifecycle.

    line 33
  4. Distinctive:

    Prefer transform/opacity for continuous animation and measure expensive effects.

    line 34
  5. Distinctive:

    Verify keyboard/touch behavior and multiple responsive layouts.

    line 35
  6. Distinctive:

    Test on realistic lower-powered/mobile hardware for important motion.

    line 36
  7. Distinctive:

    Do not use scroll-jacking for ordinary content navigation.

    line 42
  8. Distinctive:

    Do not create a new tween on every pointer event in a high-frequency path.

    line 43
  9. Distinctive:

    Do not make animation callbacks the only mechanism that completes business-critical state.

    line 45

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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:

  1. no animation when it adds no meaning;
  2. CSS transitions/keyframes for simple transitions;
  3. Web Animations API when appropriate to the existing stack;
  4. GSAP for complex sequencing, scroll linkage, SVG, drag, or high-frequency interactive animation.

Do not add GSAP for a basic hover/fade.

Workflow

  1. Define the purpose of the motion and the no-animation fallback.
  2. Determine reduced-motion behavior before implementation.
  3. Choose CSS/platform/GSAP based on complexity.
  4. Keep animation ownership aligned with component ownership and cleanup lifecycle.
  5. Prefer transform/opacity for continuous animation and measure expensive effects.
  6. Verify keyboard/touch behavior and multiple responsive layouts.
  7. Test on realistic lower-powered/mobile hardware for important motion.

Non-negotiable rules

  • Respect prefers-reduced-motion for 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

Download now (ZIP)

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.