Okay, the user wants a motion design spec system that includes easing tokens, duration tiers, and accessibility escapes. Let me break down what they need.
First, they mentioned easing tokens. That probably means defining a set of easing curves for different use cases. I should think about standard easing types like ease-in, ease-out, and their variations. Maybe include cubic-bezier values for precision.
Next, duration tiers. These would be predefined time intervals for animations, categorized by context—like quick interactions vs. longer transitions. Need to map each tier to specific use cases to keep consistency.
Accessibility escapes are crucial. Users with motion sensitivity might need reduced motion. So the system must support prefers-reduced-motion media queries. Have to define how tokens behave under that setting—maybe shorter durations or no movement.
Wait, the user might be a designer or developer building a design system. They want a structured way to implement motion consistently across a product. Deep down, they might need to ensure accessibility compliance and maintainable code. Maybe they’ve had issues with inconsistent animations before.
Should I include implementation examples? Yes, because they’ll likely use this spec in code. Provide CSS variables and JS logic for toggling reduced motion. Also, mention testing procedures to validate everything.
Make sure the tiers are intuitive—like micro-interactions vs. page transitions. And link each tier to appropriate easing. For reduced motion, disable non-essential animations but keep functional ones like focus states.
Check if any edge cases are missed. What about user-controlled preferences? The system should override user settings only for critical feedback? No, accessibility settings should always take precedence. Emphasize that reduced motion means minimal or no motion, not just slower.
Structure the response clearly: overview, tokens, durations, accessibility, implementation. Keep it practical with examples. Avoid jargon but stay technical enough for professionals. Double-check the cubic-bezier values for common easings to ensure they’re accurate.
Motion Design Specification System
A standardized framework for consistent, accessible, and performant motion across digital products.
1. Overview & Principles
Core Goals
- Consistency: Unified motion language across all interfaces
- Performance: Optimized for 60fps on target devices
- Accessibility: Respect user preferences & vestibular sensitivities
- Intentionality: Every motion must have a clear functional/emotional purpose
Hierarchy of Motion Types
1. State Changes (UI feedback)
2. Spatial Transitions (navigation)
3. Attention Directing (decorative)
2. Easing Tokens
Standard Easing Library
All values defined as CSS cubic-bezier() for maximum browser support.
| Token Name | cubic-bezier | Use Case | Intensity |
|---|
ease-out-smooth | 0.25, 0.1, 0.25, 1 | UI state changes, hover/focus states | Subtle |
ease-in-out | 0.42, 0, 0.58, 1 | Page/screen transitions | Moderate |
ease-out-bounce | 0.34, 1.56, 0.64, 1 | Success confirmations, playful interactions | Pronounced |
ease-in-sharp | 0.8, 0, 1, 1 | Immediate feedback (errors, alerts) | Abrupt |
linear | 0,0,1,1 | Loading spinners, progress indicators | Mechanical |
Easing Selection Matrix
┌─────────────────┬──────────────────────────────┐
│ Motion Purpose │ Recommended Token │
├─────────────────┼──────────────────────────────┤
│ Entry/Exit │ ease-in-out │
│ hover/focus │ ease-out-smooth │
│ Success │ ease-out-bounce (if brand) │
│ Error/Warning │ ease-in-sharp │
│ Cycle repeater │ linear │
└─────────────────┴──────────────────────────────┘
3. Duration Tiers
Duration Scale
Based on material design and Apple’s HIG recommendations, scaled logarithmically for human perception.
| Tier | Duration | Use Cases | Max Distance |
|---|
duration-20 | 80ms | Micro-interactions (button press, toggle) | < 60px |
duration-40 | 160ms | UI state changes (dropdown, tooltip) | 60-200px |
duration-60 | 240ms | Modal appearance, small element transitions | 200-400px |
duration-80 | 320ms | Page/screen transitions | 400-800px |
duration-100 | 400ms | Hero animations, major layout shifts | > 800px |
Duration Calculation Formula
For custom distances not matching tiers:
/* Logarithmic interpolation between tiers */
/* duration = base * log(distance/ref_distance) */
/* Recommended reference: 400px = duration-80 (320ms) */
4. Accessibility Escapes
Required Implementation
All motion must respect the following:
4.1 User Preference Detection
@media (prefers-reduced-motion: reduce) {
/* Override ALL motion tokens */
--ease: linear !important;
--duration: 0ms !important;
}
4.2 Reduced Motion Behavior
| Original Motion | Reduced Motion Alternative |
|---|
| Entry/exit animations | Instant appearance (0ms) |
| Moving elements | Static position with opacity change only |
| Parallax/transform | No transform, optional opacity fade |
| Loading spinners | Static spinner or text indicator |
4.3 Critical Exceptions (Allowed in Reduced Motion)
- Focus indicators (must remain visible)
- Functional feedback (button press states)
- Error states (shake animations → instant color change)
- Progress indication (spinners → static progress bar)
5. Implementation Specifications
CSS Custom Properties Structure
:root {
/* Easing */
--ease-smooth: cubic-bezier(0.25, 0.1, 0.25, 1);
--ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
/* Durations */
--duration-micro: 80ms;
--duration-small: 160ms;
--duration-medium: 240ms;
--duration-large: 320ms;
--duration-hero: 400ms;
/* Motion-safe overrides */
@media (prefers-reduced-motion: reduce) {
--ease-smooth: linear;
--duration-micro: 0ms;
--duration-small: 0ms;
--duration-medium: 0ms;
--duration-large: 0ms;
--duration-hero: 0ms;
}
}
JavaScript Utility (Optional)
const motion = {
isReduced: window.matchMedia('(prefers-reduced-motion: reduce)').matches,
durations: {
micro: 80,
small: 160,
medium: 240,
large: 320,
hero: 400
},
getAdjustedDuration: (baseDuration) =>
motion.isReduced ? 0 : baseDuration
};
6. Component-Level Application
Example: Modal Animation
.modal-enter {
opacity: 0;
transform: scale(0.9);
transition:
opacity var(--duration-medium) var(--ease-smooth),
transform var(--duration-medium) var(--ease-smooth);
}
.modal-enter-active {
opacity: 1;
transform: scale(1);
}
/* Reduced motion override */
@media (prefers-reduced-motion: reduce) {
.modal-enter {
transition: opacity 0ms;
transform: none;
}
}
7. Testing & Validation Checklist
✅ Functional Testing
✅ Accessibility Testing
✅ Cross-Platform Consistency
8. Token Usage Guide
When to Use Which Tier
┌─────────────────────┬─────────────┬──────────────────────┐
│ Element │ Duration │ Easing │
├─────────────────────┼─────────────┼──────────────────────┤
│ Button hover │ micro │ ease-out-smooth │
│ Dropdown appear │ small │ ease-out-smooth │
│ Tooltip │ small │ ease-out-smooth │
│ Modal │ medium │ ease-in-out │
│ Page transition │ large │ ease-in-out │
│ Success checkmark │ small │ ease-out-bounce │
│ Error shake │ micro │ ease-in-sharp │
│ Loading spinner │ N/A │ linear (infinite) │
└─────────────────────┴─────────────┴──────────────────────┘
9. Brand Motion Considerations
Optional Brand Easing
If brand requires distinctive motion:
/* Brand-specific easing (use sparingly) */
--ease-brand: cubic-bezier(0.2, 0.8, 0.2, 1); /* "snappy premium" */
/* Apply only to: */
/* - Hero animations */
/* - Onboarding flows */
/* - Celebration moments */
10. Documentation Maintenance
Version Control
- Tokens versioned with design system (e.g.,
motion@2.1.0)
- Breaking changes require migration guide
- Browser support matrix maintained separately
Deprecation Policy
- Old tokens deprecated for 6 months before removal
- Deprecated tokens log warnings in development
- Migration tools provided for large codebases
Appendix: Quick Reference Card
DURATIONS: micro(80) → small(160) → medium(240) → large(320) → hero(400)
EASINGS: smooth(standard) / in-out(transitions) / bounce(playful) / sharp(alert)
RULE 1: Never animate > 500ms without user control
RULE 2: Always implement prefers-reduced-motion
RULE 3: Motion must have purpose (feedback, orientation, attention)
RULE 4: Test on 3G/low-end devices
This specification follows WCAG 2.1 Level AA guidelines and incorporates research from Google Material Motion, Apple Human Interface Guidelines, and the Reduced Motion Media Query.