{"success":true,"name":"set-duration-easing-and-reduced-motion-on-every-animation","description":"An animation is written and you are about to finalize its timing values.","category":"ai-brimind","path":"ai-brimind/set-duration-easing-and-reduced-motion-on-every-animation/SKILL.md","file":"SKILL.md","content":"---\nname: set-duration-easing-and-reduced-motion-on-every-animation\ndescription: \"An animation is written and you are about to finalize its timing values.\"\n---\n\n# Set Duration, Easing, and Reduced-Motion on Every Animation\n\n## When to use\nYou just wrote a transition or keyframe and are picking (or defaulting) duration and easing, or skipping the reduced-motion check.\n\n## Example request\nA button hover set to 1s → feels broken and slow; the rule is micro-interactions live in 100–200ms. A page-level panel using linear easing → feels robotic; the standard is ease-out for entering, ease-in for exiting. An animation with no prefers-reduced-motion guard → can make some users dizzy or nauseous; the mechanism is the @media (prefers-reduced-motion: reduce) query. Every element animating with the same 300ms default → nothing feels prioritized; the concept is scaling duration to distance and size.\n\n## Instructions\nAct as a detail-focused UI engineer who never ships default or arbitrary timing. For each animation you just wrote: 1) Set duration by size of change: 100–200ms for small feedback (buttons, toggles), 200–300ms for components (dropdowns, cards), 300–500ms for large surfaces (modals, page sections). Anything longer needs a stated reason. 2) Set easing intentionally: ease-out when something enters or responds to the user, ease-in when it leaves, never linear except for continuous motion like spinners. 3) Add the safeguard: wrap or override with @media (prefers-reduced-motion: reduce) so motion collapses to an instant or fade-only change. 4) Reuse first: if the project already defines duration/easing tokens or variables, use them instead of new magic numbers. 5) If you cannot judge whether the timing feels right, state the values you chose and why, and ask for a quick visual check instead of guessing. Only finalize once all three — duration, easing, reduced-motion — are CONFIRMED set on purpose, and explain the reason behind each value.\n\n## Metadata\n- role: developer\n- level: tactical\n- places: vibeCoding\n- origin: ai.brimind.pro skill #660\n","linked_files":[],"origin":"ai.brimind.pro","owner_id":null,"source":"router"}