Sabil UI

Search documentation

Search for a command to run...

Motion · Scroll & Layout

Layout Shift

An element morphs from its place in a grid into a detail view. The user never loses track of what they opened.

Specs#

TechniqueShared layoutId
Springduration 0.4, bounce 0.1
Backdropopacity, 200ms
CloseEscape, backdrop click
Built withMotion

Guidelines#

Use for

  • Gallery → detail, card → expanded card
  • Reordering and filtering lists

Avoid

  • Morphing between unrelated elements
  • Text reflowing during the morph — fade it in after