interaction-motion-design
Micro-interactions, animation timing and easing curves, spring physics, transition choreography, haptic feedback vocabularies, and emotional design. Use when adding or reviewing animation, tuning motion duration, designing haptics, or supporting prefers-reduced-motion.
- License 许可
- MIT
- 最近更新
- 2026-11-10
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- interaction-motion-design
- description
- Micro-interactions, animation timing and easing curves, spring physics, transition choreography, haptic feedback vocabularies, and emotional design. Use when adding or reviewing animation, tuning motion duration, designing haptics, or supporting prefers-reduced-motion.
- allowed-tools
- Read, Grep, Glob
02 资源文件 4
- 参考文档references/animation-timing-curves.md33.5 KB
- 参考文档references/emotional-design-patterns.md35.2 KB
- 参考文档references/haptic-feedback-design-system.md35.7 KB
- 参考文档references/ui-motion-patterns.md3.8 KB
03 SKILL.md 正文
Interaction & Motion Design — Purposeful Animation Framework
Motion connects interface states, communicates causality, and creates emotional resonance. Every animation must earn its milliseconds — gratuitous motion is worse than no motion at all.
Core Principles (Disney's 12 Principles, Adapted for UI)
- Purpose over polish — every animation must serve a functional role: guide attention, show relationships, confirm actions, or create continuity
- Physics-based movement — natural motion follows physical laws (acceleration, deceleration, spring, gravity)
- Performance is non-negotiable — animations must run at 60fps; a janky animation is worse than no animation
- Respect user preference — honor
prefers-reduced-motionunconditionally; motion sensitivity is real and common - Subtlety scales — small animations compound; individually subtle, collectively they define the interface's personality
Base Motion Scale (owned here)
This skill owns the base motion tokens for design-ops. animation-recipe-library and design-token-presets use these names; the full spec with rationale is in references/animation-timing-curves.md.
| Token | Value | Use |
|---|---|---|
--ease-out |
cubic-bezier(0.16, 1, 0.3, 1) |
Entrances |
--ease-in |
cubic-bezier(0.55, 0.055, 0.675, 0.19) |
Exits |
--ease-in-out |
cubic-bezier(0.87, 0, 0.13, 1) |
On-screen state changes |
--ease-spring |
cubic-bezier(0.34, 1.56, 0.64, 1) |
Single overshoot (CSS stand-in for a spring) |
--duration-instant |
50ms | Hover color, cursor |
--duration-fast |
150ms | Press, toggle, focus, tooltip |
--duration-normal |
250ms | Dropdown, dialog, card expand |
--duration-moderate |
300ms | Panel slide, toast, view change |
--duration-slow |
400ms | Modal with backdrop, page transition |
--duration-slower |
600ms | Complex reflow, onboarding, celebration (rare) |
| Spring preset | Stiffness / damping / mass | Use |
|---|---|---|
spring-snappy |
400 / 30 / 1 | Toggles, switches, presses |
spring-default |
300 / 25 / 1 | General UI, panels, drag release |
spring-gentle |
200 / 25 / 1 | Large surfaces, sheets, layout morphs |
spring-bouncy |
300 / 10 / 1 | Celebrations, playful confirmations |
Platform springs (M3 Expressive, iOS 26 Liquid Glass): platform-visual-standards.
Timing Rules
- Interface responses under 100ms feel instantaneous — do not animate these.
- User-initiated actions: 150-300ms (responsive, not sluggish).
- System-initiated changes: 200-500ms (smooth, noticeable enough to orient).
- Exits run 20-40% faster than the matching entrance.
- Never exceed 1000ms for any single transition in regular workflows.
- Mobile animations should be approximately 30% shorter than desktop equivalents for a faster feel.
- Never use linear easing for UI motion. The only exceptions are infinite progress indicators and color transitions.
- Prefer a spring for anything the user directly manipulates; prefer a bezier when timing must be predictable.
Haptic Rules
- Pair haptics with visual feedback — never rely on haptics alone.
- Keep haptic patterns short (under 100ms) for UI feedback.
- Match haptic intensity to action significance.
- Disable haptics when user has reduced motion preferences.
Reduced Motion
@media (prefers-reduced-motion: reduce) {
*, *::before, *::after {
animation-duration: 0.01ms !important;
animation-iteration-count: 1 !important;
transition-duration: 0.01ms !important;
scroll-behavior: auto !important;
}
}
Preferred approach: Replace motion with non-motion alternatives rather than removing all animation.
- Replace slide transitions with instant state changes or opacity fades.
- Replace bouncing/spinning with static state indicators.
- Keep essential functional animations (progress bars) but simplify them.
- Remove parallax, auto-playing video backgrounds, and decorative animations entirely.
Routing
For timing and easing — the base motion scale, CSS animation fundamentals, the cubic-bezier deep dive, Material/Apple/brand curves, spring physics, duration calculation, stagger patterns, performance, the @keyframes pattern library, and the View Transitions API: read references/animation-timing-curves.md.
For concrete UI patterns — button, toggle, form and toast micro-interactions, page/modal/tab transitions, shared-element transitions, skeletons, progress, optimistic UI: read references/ui-motion-patterns.md.
For why motion makes people feel something — Norman's three levels, Saffer's micro-interaction anatomy, the micro-interaction catalog, sound design, brand personality and emotional vocabulary through motion, and the line between delight and annoyance: read references/emotional-design-patterns.md.
For the haptic feedback system — iOS Core Haptics, Android haptics, Apple Watch Taptic Engine, brand haptic vocabulary, haptic accessibility: read references/haptic-feedback-design-system.md.
Cross-Referencing
- For copy-paste motion code built on the base scale, reference
animation-recipe-library. - For performance impact on mobile, reference
mobile-ux-design. - For accessibility requirements, reference
accessibility-inclusive-design. - For visual design integration, reference
visual-design-mastery. - For spatial and XR motion, reference
spatial-voice-ux.
Key Sources
- Thomas, F. & Johnston, O. "The Illusion of Life" (Disney animation principles)
- Norman, D. (2004). "Emotional Design"
- Material Design motion guidelines
- Apple Human Interface Guidelines — Motion
- Google Web Vitals animation performance guidance
04 同仓库更多 Skills
no-description
暂无简介
good-skill
Fixture skill that satisfies every rule.
broken-link
Links to a reference file that does not exist.
Bad_Name
Name violates the kebab-case rule and does not match the directory.
skill-authoring
Write, review, and validate portable agent skills in SKILL.md format. Use when creating a new skill, editing an existing one, or asked whether a skill follows the Agent Skills spec.
weigh-bags
Record scale readings for each bag — empty (tare), outbound, current, final — and reconcile them against the itemised inventory to find unaccounted weight. Use when the user gives a bag weight, says how heavy something is, weighs their luggage, or asks how close to the limit they are. Appends to bags.yaml and runs scripts/reconcile.py.