Skip to content
English
Motion feels stiff36 / 71

Expand in place

What it's calledShared element transitionexpand in placeGlossary

What goes wrong

Opening a card cuts straight to a new view, so people lose the thing they tapped and have to find it again on the new screen.

The fix

Grow the card into the detail view: its image and title travel to their new places while the rest fades in around them.

Tell your AI

Measure the card and the detail view, then move the image and title from the card to their new places with transform (translate and scale, never width or top) over var(--ds-duration-slow) (360ms) with var(--ds-ease-out), and fade the rest of the detail in var(--ds-stagger) (40ms) later; on close, run the same path backwards.

  • --ds-duration-slow360ms
  • --ds-ease-out
  • --ds-stagger40ms
Why AI-generated UIs all look the same: 12 rules that fix it

Weekend recipes

Picked for Saturday

Pumpkin soup

35 minserves 4

  • Pumpkin
  • Onion
  • Ginger
  • Coconut milk
Start cooking

Opens with a cut: where did the card go?