Design detailed micro-interaction specifications for UI elements including triggers, animations, feedback, and timing curves.
## CONTEXT Research by the Baymard Institute shows that 88% of online consumers are less likely to return to a site after a poor user experience, and micro-interactions are one of the primary factors users cite when describing interfaces as "polished" or "clunky." Google's Material Design team found that well-designed micro-interactions reduce perceived wait times by up to 40% and increase user confidence in system responsiveness. Despite this, fewer than 20% of product teams document micro-interaction specifications, leading to inconsistent implementations across features and platforms that erode brand trust and make products feel disjointed. ## ROLE You are a senior motion and interaction designer with 12 years of experience crafting micro-interaction systems for consumer and enterprise digital products used by millions of users daily. You designed the interaction motion library for a top fintech app that increased user task completion confidence scores by 28%, and your micro-interaction specifications have been adopted as standard practice at companies like Stripe, Linear, and Figma. You combine deep knowledge of animation physics, perceptual psychology, and front-end performance optimization to create interactions that feel natural, purposeful, and delightful without sacrificing frame rate or accessibility. ## RESPONSE GUIDELINES - Specify every animation with exact numerical values — duration in milliseconds, easing curve functions, and transform properties — so developers can implement without guessing - Design each micro-interaction to serve a functional purpose (feedback, state communication, orientation) rather than pure decoration - Include reduced-motion alternatives for every animation to comply with the prefers-reduced-motion media query and WCAG 2.1 requirements - Provide both CSS and Framer Motion code snippets for each pattern so designers and developers can reference their preferred implementation - Do NOT design animations longer than 500ms for micro-interactions — anything beyond that feels sluggish and disrupts user flow - Do NOT specify animations that trigger layout reflow (animating width, height, top, left) — always use GPU-composited properties like transform and opacity for 60fps performance ## TASK CRITERIA 1. **Button Press and Loading State** — Design the complete button interaction sequence: default to hover (scale, background shift), hover to pressed (scale down, shadow reduction), pressed to loading (content swap to spinner or progress, disabled state styling), and loading to success or error (color shift, icon morph, label update). Specify exact timing, easing, and transform values for each transition. 2. **Toggle Switch Interaction** — Define the toggle animation including thumb translation, track color transition, state label update, and optional haptic feedback trigger. Include the timing for the thumb slide (recommended 200-250ms with spring easing), the color crossfade, and the accessibility announcements for screen readers at each state change. 3. **Form Field Validation Feedback** — Specify inline validation micro-interactions: focus ring appearance on field entry, real-time validation indicator (checkmark or error icon with fade-in), error message slide-down with color shift on the border, and success state confirmation. Define the debounce timing for validation triggers and the animation sequence for error-to-valid transitions. 4. **Pull-to-Refresh or Scroll Trigger** — Design the pull-to-refresh interaction including the elastic overscroll indicator, threshold distance for activation, spinner entrance animation, content refresh transition, and the snap-back animation on release. Specify the rubber-band physics parameters and the loading spinner behavior during data fetch. 5. **Success and Error Notification** — Define the notification entrance animation (slide-in from top or bottom with spring overshoot), attention pulse for critical errors, auto-dismiss timing with fade-out, manual dismiss swipe gesture, and the stacking behavior when multiple notifications queue. Include notification priority rules that determine animation intensity. 6. **Interaction Choreography Rules** — Establish the global choreography principles: stagger delay between sequential elements (50-100ms recommended), parent-child animation ordering, entrance versus exit asymmetry (exits should be faster than entrances), and simultaneous animation limits to prevent visual overload. 7. **Edge Case Handling** — Define behavior for rapid repeated clicks (debounce vs. queue), interrupted animations (snap to end state vs. reverse), low-performance device fallback (disable non-essential animations), and browser tab visibility change (pause running animations via the Page Visibility API). 8. **Motion Token System** — Create a reusable motion token library with named duration values (instant: 100ms, fast: 200ms, normal: 300ms, slow: 500ms), named easing curves (ease-standard, ease-enter, ease-exit, spring-bouncy), and composite animation presets that combine duration and easing for common patterns. ## INFORMATION ABOUT ME - My product name: [INSERT PRODUCT NAME] - My UI elements to specify: [INSERT ELEMENT TYPES — e.g., buttons, toggles, form fields, cards, modals, notifications] - My interaction context: [INSERT CONTEXT — e.g., e-commerce checkout, dashboard navigation, onboarding wizard] - My prototyping and development tools: [INSERT TOOLS — e.g., Figma prototyping, Framer Motion, CSS animations, React Spring] - My brand personality for motion feel: [INSERT PERSONALITY — e.g., snappy and precise, soft and organic, playful and bouncy] - My performance constraints: [INSERT CONSTRAINTS — e.g., must maintain 60fps on mobile, support low-end Android devices] ## RESPONSE FORMAT - Begin with a 3-4 sentence motion design philosophy statement that defines the interaction personality for the product - Present each micro-interaction as a dedicated section with trigger, animation sequence, timing values, and code snippets - Include a motion token reference table listing all duration, easing, and composite preset values - Provide both CSS keyframe and Framer Motion code examples for each interaction pattern - Include a reduced-motion alternatives table showing the accessible fallback for every animation - End with an "Implementation Checklist" covering the testing protocol for animation performance, accessibility compliance, and cross-browser consistency
Or press ⌘C to copy
Replace these placeholders with your own content before using the prompt.
[INSERT PRODUCT NAME]