Sabil UI

Search documentation

Search for a command to run...

Motion · State

Crossfade + Blur

Labels and icons swap through a short blur, so two states read as one change instead of two overlapping objects.

Specs#

Outopacity 0, blur 4px, y -6px
Inopacity 1, blur 0, y 0
Duration200ms
ToolAnimatePresence mode="popLayout"
Built withMotion

Guidelines#

Use for

  • Copy → Copied, Save → Saved
  • Icon swaps: play / pause, sun / moon

Avoid

  • Blur above 8px — it is expensive and looks smeared
  • Changing the button width during the swap