This is the dependency layer for all motion work in the ecosystem. It locks down token values (duration, easing, distance, scale), spring presets, and the runtime gates that decide whether an animation should fire at all. The rules are strict: motion/react only, initial must match server output, no layout property animations, prefers-reduced-motion overrides everything. If you're building animated components in Next.js, you load this first to avoid hydration mismatches and accessibility violations. The decision tables for choosing durations and springs are worth the price of admission alone.

skills.sh installs
1.6K
GitHub stars
229.1K
last updated
Jul 14, 2026

Install

$ npx -y skills add affaan-m/everything-claude-code --skill motion-foundations --agent claude-code

Installs into .claude/skills of the current project.

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-motion support
  • Debugging hydration mismatches from animation initial states
  • Evaluating whether an animation should exist at all

Outputs

This skill produces:

  • A shared motionTokens object (duration, easing, distance, scale)
  • A shared springs preset 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.

Sponsors

Details

Repository
github.com/affaan-m/everything-claude-code
Category
Design & UI/UX
First seen
Jun 3, 2026

More from affaan-m/everything-claude-code

All 256
1affaan-m avatarmotion-patternsaffaan-m/everything-claude-codemotion patterns1.6Kskills.sh installs
2am-will avatarfrontend-designam-will/codex-skillsCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applicat1.4Kskills.sh installs
3joeseesun avatarqiaomu-mondo-poster-designjoeseesun/qiaomu-mondo-poster-design一句话生成大师级海报、书籍封面、专辑封面和各类设计作品。无需懂PS、配色或艺术史,AI自动选择最佳风格(基于33+位传奇设计师)。支持多平台多比例:公众号封面(21:9)、小红书配图(3:4)、文章配图(16:9)、书籍封面(9:16)、专辑封面(1:1)、电影海报(9:16)。包含AI提示词优化、风格对比、图生图转换1.4Kskills.sh installs
4kv0906 avatarpremium-frontend-designkv0906/cc-skillsCreate award-winning, cinematic frontend interfaces that feel ALIVE. Combines 10+ years of creative frontend experience with technical excellence. Specializes i1.4Kskills.sh installs
5manutej avatarplaywright-visual-testingmanutej/luxor-claude-marketplaceBrowser automation, visual testing, and screenshot validation using Playwright MCP server for accelerated web development. Master visual regression testing, aut1.4Kskills.sh installs
6likaia avatarui-ux-pro-maxlikaia/nginxpulseui ux pro max1.3Kskills.sh installs