skip the tree
system / motion / overlays2 rebuilds

Overlays

The Overlays examples of the Motion library, rebuilt in Composite: the same trigger, in steps, with the system's own parts.

the category

motion/_rebuilds
rebuilds
2
from motion+
2
easing
steps() only

motion / overlays / toast: stacked notifications

after a motion+ example
add toasts, then point at the stack
margin_rebuilds/​overlays/​toast-stack.tsx
Motion
a stack of toasts
here
ui/toast
a toast
a cut in, a cut out
stack
a peek each; point to open

Each toast cuts in at the front, and the older ones step back behind it a peek each. Pointing at the stack opens it; a toast leaves in one cut.

motion / overlays / sheet modal

after a motion+ example
open the sheet, drag it down, or press Escape
margin_rebuilds/​overlays/​sheet-modal.tsx
Motion
a sheet that drags down
open
data-feed, 4 frames
a frame
40 ms, a quarter up
leave
one cut; drag 6 cells or Escape
original
Sheet Modal

The sheet feeds up from the bottom in four steps. The grabber drags it down in whole 8 px cells; six cells, Escape or an action close it in one cut.