Micro Animation Design

Micro-interaction animation design, state transitions, and feedback animations.

dragoon0x d4b287c 1.1 KB Updated

File contents

Micro Animation Design

Micro-Animation Categories

Feedback

  • Button press (scale down 95%, 100ms).
  • Toggle switch (slide + color, 200ms).
  • Checkbox (check mark draws in, 200ms).
  • Like/heart (scale up + color, 300ms with spring easing).

State Transitions

  • Accordion open/close (height + opacity, 250ms).
  • Tab switch (slide + fade, 200ms).
  • Modal enter (scale from 95% + fade, 200ms).
  • Modal exit (fade out, 150ms — exits should be faster than enters).

Loading

  • Skeleton shimmer (gradient sweep, 1.5s, infinite).
  • Spinner rotation (360°, 800ms, infinite).
  • Progress bar fill (width, eased).
  • Content fade in (opacity 0→1, staggered by 50ms per item).

Attention

  • Badge pulse (scale 1→1.1→1, 600ms, once on new count).
  • Error shake (translateX -4px→4px→0, 300ms).
  • Success checkmark (draw SVG path, 400ms).

Implementation Notes

  • Only animate transform and opacity for 60fps.
  • Use will-change sparingly.
  • Always honor prefers-reduced-motion.

dragoon0x/everything-design-taste/tree/main/skills/micro-animation-design commit d4b287c094

Frequently asked questions

npx skillmds@latest add dragoon0x/micro-animation-design