Motion Foundations
Motion tokens, spring presets, and reduced-motion rules for React and Next.js using motion/react.
- CCM score
- 71 of 100
- skills.sh installs
- 9K
- GitHub stars
- 312.6K
- last updated
- Aug 21, 2026
Own this skill? Claim it
What it does
- Covers the motion system base layer: duration and easing tokens, distance and scale values, and a 5-preset spring map
- Includes a
shouldAnimate()gate that checks reduced-motion preference, low-end hardware, and anessentialflag before animating - Enforces rules that ban layout-property animation, mixing
framer-motionwithmotion/react, and hydration mismatches frominitialstates - Designed as the foundation layer that
motion-patternsandmotion-advancedbuild on, loaded before any animation work
Install
$ npx -y skills add affaan-m/ecc --skill motion-foundations -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
Files
Motion Foundations
The base layer of the motion system. Defines every value, constraint, and
rule that downstream skills (motion-patterns, motion-advanced) inherit.
Load this skill before any animation work begins.
When to Activate
- Starting any animated component from scratch
- Setting up tokens, spring presets, or easing values
- Implementing
prefers-reduced-motionsupport - Debugging hydration mismatches from animation initial states
- Evaluating whether an animation should exist at all
Outputs
This skill produces:
- A shared
motionTokensobject (duration, easing, distance, scale) - A shared
springspreset map (5 named configs) - A
shouldAnimate()gate used by all components - Accessibility-compliant animation defaults via
useReducedMotion - SSR-safe initial states with zero hydration warnings
Principles
Motion must do at least one of the following or it must be removed:
- Guide attention
- Communicate state
- Preserve spatial continuity
Responsiveness always outranks smoothness. A 60 fps animation that causes input delay is worse than no animation.
Rules
These are non-negotiable. They apply to every component in the system.
Details
- Repository
- github.com/affaan-m/ecc
- Categories
- Animation & Motion, Frontend & UI Code
- First seen
- Jul 14, 2026
Questions
What does the motion-foundations skill do for React and Next.js?
The motion-foundations skill sets up motion tokens, spring presets, performance rules, device adaptation, accessibility enforcement, and SSR safety for React and Next.js using motion/react. It is the base layer that other motion skills depend on, defining the values and constraints they inherit.
How do I install the motion-foundations skill?
Run npx -y skills add affaan-m/ecc --skill motion-foundations -y in your project. After installing, the agent can set up shared motion tokens, a spring preset map, and reduced-motion handling for your components.
Which skills lead the Animation & Motion category, and how does motion-foundations fit in?
motion-foundations ranks in the top 100 on the Animation & Motion category page, alongside remotion-render and several hyperframes skills. Unlike those, it focuses on the shared foundation of tokens, springs, and accessibility rules that the motion-patterns and motion-advanced skills build on.
Does motion-foundations handle reduced motion and hydration issues?
Yes, the skill enforces prefers-reduced-motion by disabling transforms and limiting opacity fades to 0.2 seconds or less. It also keeps initial animation states matching server output to avoid hydration mismatches in Next.js.
More from affaan-m/ecc
All 257- Motion Advanced8.9K
- Ecc Guide8.9K
- Mle Workflow8.9K
- Django Celery8.8K
- Homelab Network Setup8.8K
- Ios Icon Gen8.8K
- Agentic Os8.8K
- Skill Stocktake8.8K
- Ui To Vue8.8K
- Network Interface Health8.7K
- Homelab Wireguard Vpn8.7K
- Netmiko Ssh Automation8.7K
- Homelab Network Readiness8.7K
- Cisco Ios Patterns8.7K
- Plan Orchestrate8.7K
- Angular Developer8.7K
- Network Config Validation8.7K
- Quarkus Patterns8.7K
- Skill Scout8.6K
- Cost Tracking8.6K
- Network Bgp Diagnostics8.6K
- Flox Environments8.6K
- Homelab Vlan Segmentation8.6K
- Quarkus Security8.6K
Similar to Motion Foundations
More Animation & Motionframer-motionmindrally/skills3.2K installsExpert guidelines for performant Motion animations in React, favoring transform and opacity with accessibility checks.
motion-patternsaffaan-m/ecc9K installsProduction-ready React and Next.js animation patterns for buttons, modals, toasts, stagger, page transitions, and scroll.
motionhairyf/skills1.2K installsMotion animation library that covers JavaScript, React, and Vue with gestures, springs, and layout transitions.
motion-design-patternsdylanfeltus/skills171 installsFramer Motion patterns for React, covering springs, staggers, layout, exit, scroll, and page transitions.
motion-framerfreshtechbro/claudedesignskills7K installsModern React animation library with gestures, layout animations, exit transitions, and spring physics for interactive UI.