Agent skill

Motion Foundations Skill: Tokens and Springs for React Animation

Motion foundations is an ECC skill that gives an AI coding agent shared motion tokens, five spring presets and strict reduced-motion and SSR rules for React and Next.js.

Stars, license and last push from GitHub. Install count as reported by the open skills directory.

What is the motion foundations skill?

Motion foundations is a skill in the affaan-m/ECC repo for React and Next.js animation with motion/react. It defines duration, easing, distance and scale tokens, five named springs, a shouldAnimate gate, reduced-motion handling and SSR-safe initial states that the other motion skills build on.

Motion foundations is the base layer of a small motion system in the ECC repository. Its description says every other motion skill depends on it, so the agent loads it before any animation work begins.

It targets React and Next.js code that uses the motion/react package. The skill fixes the values and rules once, so components stop carrying their own durations, easings and spring numbers.

What changes in your agent's output

  • Durations, easings, distances and scales come from one motionTokens object, not from numbers typed inside components.
  • Spring configs come from a five-entry map named snappy, gentle, bouncy, instant and release.
  • Only transform and opacity are animated. Width, height, top, left, margin and padding are banned from animate.
  • Reduced motion turns transforms off and leaves only opacity fades of 0.2 seconds or less.
  • Initial states match what the server rendered, which avoids hydration warnings.

Who it is for

Best for

  • React or Next.js projects that want one consistent motion language across components.
  • Teams that have been burned by hydration mismatches from animated initial states.
  • Projects where reduced-motion and low-end device behavior must be enforced, not optional.

Not for

  • CSS-only animation, Tailwind animate classes without motion/react, or GSAP and anime.js work, which it lists as non-goals.
  • Deciding what to animate. The skill calls that a design concern, not a code constraint.
  • Components such as modals or drag handlers. Those live in the companion motion skills.

Use it with UiChemy

Motion foundations governs animation in a React codebase. For a WordPress site, UiChemy Composer writes HTML, CSS and JS into the page, so this skill would not apply there. Click Get Started on uichemy.com.