Build a motion foundation for React/Next.js with safe, accessible performance rules.
Overall this is a prompt-only open-source skill description with no secrets, remote endpoints, or evidence of local code execution, so the risk is low. The main thing to watch is its animation/SSR guidance affecting frontend behavior, which is within normal tool capability and not high risk.
No secrets, tokens, or environment variables are declared; the material explicitly says none, so there is no evidence of credential leakage or misuse risk.
No remote host endpoints are listed, and there is no description of sending user data to external services.
This is a prompt-only skill and does not itself show process spawning or code execution; however, it guides frontend use of motion/react on the local app, which is standard tool capability and should be reviewed in actual integration.
No specific file or resource read/write access is declared; however, the rules touch SSR, `window`/`navigator`, and animation initial state, indicating influence over frontend runtime data/state handling and warranting normal caution.
The source is a GitHub open-source repository with very high community adoption (210k+ stars), which improves auditability and trust; however, the license is undeclared and maintenance status is unknown, so standard supply-chain checks are still needed.
Copy the install command and let the AI configure it · recommended for beginners
Please install the "motion-foundations" skill from askskill: 1. Download https://raw.githubusercontent.com/affaan-m/ECC/main/skills/motion-foundations/SKILL.md 2. Save it as ~/.claude/skills/motion-foundations/SKILL.md 3. Reload skills and tell me it's ready
Design a motion foundation for a React/Next.js project using motion/react. Include motion tokens, spring presets, performance constraints, responsive device adaptation, reduced-motion accessibility support, and SSR safety considerations. Output a reusable configuration structure and implementation guidance.
A reusable motion foundation plan with configs, rules, and implementation guidance.
Review the following React motion implementation against foundation rules: check animation property choices, spring settings, reflow risks, prefers-reduced-motion support, and SSR/hydration safety, then provide recommended fixes.
An issue list with fixes covering performance, accessibility, and SSR risks.
Generate a foundation-layer code example with motion/react: include motion token definitions, shared spring presets, device-tier strategy, reduced-motion handling, SSR-safe wrappers, and example component usage. Make the code ready to integrate into a Next.js project.
Integrated code templates showing unified motion configuration and component usage.
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.
prefers-reduced-motion supportThis skill produces:
motionTokens object (duration, easing, distance, scale)springs preset map (5 named configs)shouldAnimate() gate used by all componentsuseReducedMotionMotion must do at least one of the following or it must be removed:
Responsiveness always outranks smoothness. A 60 fps animation that causes input delay is worse than no animation.
These are non-negotiable. They apply to every component in the system.
motion/react only. Never import from framer-motion. Never mix the two in the same tree.initial must match server output. If the server renders opacity: 1, the initial prop must also be opacity: 1. No exceptions.useReducedMotion() returns true or prefersReduced is true, all transforms are disabled. Opacity-only fades at ≤ 0.2s are the only permitted fallback.width, height, top, left, margin, padding are banned from animate. Use transform and opacity only.motionTokens. Hardcoded durations and easings in component files are forbidden.springs map. Inline stiffness/damping values are forbidden."use client" is required on every file that imports from motion/react.window or navigator at module level. Always guard with typeof window !== "undefined".| Token | Use when |
|---|---|
instant | Tooltip show/hide, focus ring, badge update |
fast | Button feedback, icon swap, chip toggle |
normal | Modal open, card expand, page element enter |
slow | Hero entrance, full-page transition |
crawl | Deliberate storytelling; use sparingly |
| Preset | Use when |
|---|---|
snappy | Default UI — buttons, chips, nav items |
gentle | Cards, modals, panels landing softly |
bouncy | Playful moments — empty states, onboarding |
instant | Tooltips, popovers, dropdowns |
release | Drag release — natural physics feel |
Disable (make shouldAnimate() return false) when:
prefersReduced is trueisLowEnd is true and the animation is non-essential// lib/motion-tokens.ts
export const motionTokens = {
duration: {
instant: 0.08,
fast: 0.18,
normal: 0.35,
slow: 0.6,
crawl: 1.0,
},
easing: {
smooth: [0.22, 1, 0.36, 1],
sharp: [0.4, 0, 0.2, 1],
bounce: [0.34, 1.56, 0.64, 1],
linear: [0, 0, 1, 1],
},
distance: {
xs: 4,
sm: 8,
md: 16,
lg: 24,
xl: 48,
},
scale: {
subtle: 0.98,
press: 0.95,
pop: 1.04,
},
}
export const springs = {
snappy: { type: "spring", stiffness: 300, damping: 30 },
gentle: { type: "spring", stiffness: 120, damping: 14 },
bouncy: { type: "spring", stiffness: 400, damping: 10 },
…
Handle returns, refunds, fraud checks, and warranty claim decisions efficiently.
Use Bun for runtime, bundling, testing, packages, and Node migration decisions.
Use the correct Ethereum Keccak-256 hashing in Node.js and TypeScript.
Apply Nuxt 4 patterns for SSR safety, performance, and data fetching.
Generate images, videos, and audio with one unified AI media workflow.
Design Quarkus 3 backend patterns for messaging, APIs, data, and async workflows.
Build reusable UI animations and transitions for React and Next.js products.
Build advanced motion, gestures, and animation sequences in React and Next.js.
Build polished React and Next.js animations with reusable production-ready patterns.
Turn scroll motion ideas into validated specs and deterministic GSAP/CSS output.
Optimize React and Next.js performance during coding, review, and refactoring.
Manage Motion tasks, projects, and schedules through natural language conversations.