micro-interaction-motion-design
Skill4 starsChanged 2 months agoMITView on GitHub
Define motion tokens, interaction patterns, and feedback animations. Use when animation, transitions, micro-interaction, hover effects, loading states, motion, or make the UI feel alive.
In this repository46 other files it gives its agents.
- accessibility-reviewSkill
- accessibility-runtime-auditSkill
- adaptive-component-behaviorSkill
- ai-feature-ux-patternsSkill
- behavioral-pricing-psychologySkill
- business-model-readingSkill
- business-model-thinkingSkill
- cognitive-load-heatmap-predictionSkill
- component-style-guideSkill
- cross-functional-reviewSkill
- dark-mode-theming-systemSkill
- dashboard-layout-patternsSkill
- dashboard-scaffolding-contractSkill
- design-drift-detectorSkill
- design-system-builderSkill
- design-to-code-handoffSkill
- design-tokensSkill
- error-boundary-resilience-designSkill
- flow-based-functional-testingSkill
- growth-impact-reviewSkill
- i18n-localization-strategySkill
- information-architectureSkill
- interactive-element-auditSkill
- kinematic-motion-choreographySkill
- module-registry-syncSkill
- mvp-scopingSkill
- perceived-performance-loadingSkill
- prd-traceability-matrixSkill
- product-discoverySkill
- product-strategySkill
- project-health-diagnosticsSkill
- qa-feedback-loop-orchestratorSkill
- responsive-breakpoint-strategySkill
- responsive-qa-auditSkill
- route-integrity-checkerSkill
- security-privacy-reviewSkill
- stakeholder-requirement-mappingSkill
- touch-gesture-interactionSkill
- typography-systemSkill
- usability-heuristics-checkSkill
- user-flow-mappingSkill
- user-research-synthesisSkill
- ux-chaos-monkeySkill
- visual-hierarchy-reviewSkill
- visual-responsive-regression-testingSkill
- visual-style-extractorSkill
The file
We split this skill into the rules it gives an agent
1 rule. About 0 are common, 0 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 34
Always wrap non-essential animations in @media (prefers-reduced-motion: reduce).
≈ “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.
Files
Motion is communication, not decoration. Every animation answers a question the user didn't ask out loud: "Did that work?", "Where did it go?", "What changed?" Motion without purpose is noise; motion with purpose is clarity.
1. Define motion tokens
Like design tokens but for time and movement. See MOTION-TOKENS.md for the canonical schema. Core tokens:
(a) Durations: motion-instant: 0ms, motion-fast: 100ms, motion-normal: 200ms, motion-slow: 300ms, motion-deliberate: 500ms.
(b) Easing curves: ease-default: cubic-bezier(0.4, 0, 0.2, 1), ease-in: cubic-bezier(0.4, 0, 1, 1), ease-out: cubic-bezier(0, 0, 0.2, 1), ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275).
2. Catalog interaction patterns
For each interactive element type, define the motion:
(a) Hover: subtle bg shift or elevation change, motion-fast + ease-default.
(b) Press/active: scale down slightly (0.97–0.98) or darken, motion-instant.
(c) Focus: ring appears, motion-fast + ease-out.
(d) Drag: element follows cursor with slight lag, ease-out.
(e) Toggle/switch: slides with motion-normal + ease-spring.
3. Define feedback state animations
(a) Loading: spinner or skeleton pulse. Pulse = opacity oscillation 0.5–1.0, motion-deliberate, infinite. Skeleton shimmer = gradient slide, 1.5s, infinite.
(b) Success: checkmark appears with scale-in, motion-normal + ease-spring. Brief green flash on container.
(c) Error: shake animation (horizontal 3-frame oscillation, motion-normal). Error message slides in from top.
(d) Empty state: gentle fade-in of illustration + text, motion-slow + ease-out.
4. Transition animations
(a) Page/route transitions: crossfade or slide, motion-normal.
(b) Modal open: fade backdrop + scale-up content from 0.95, motion-normal + ease-out. Modal close: reverse, motion-fast.
(c) Dropdown/popover: scale-Y from 0 to 1, origin at top, motion-fast + ease-out.
(d) Toast/notification: slide-in from edge, motion-normal + ease-out. Auto-dismiss after 5s with fade-out.
5. Respect user preferences
Always wrap non-essential animations in @media (prefers-reduced-motion: reduce). Under reduced motion: keep functional transitions (loading indicators), remove decorative ones (bounces, slides), replace motion with instant opacity changes.
Output
Motion spec: token definitions + interaction pattern catalog + feedback state specs + transition specs + reduced-motion behavior.
Anti-patterns
- Animations longer than 500ms for UI feedback (feels sluggish).
- Bounce easing on everything (feels toy-like).
- Animating layout properties (width, height, top, left) instead of transform/opacity (causes jank).
- Motion that blocks interaction (user has to wait for animation to finish before clicking).
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
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.

