skip the tree
system / motion / layout-animations5 rebuilds

Layout animations

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

the category

motion/_rebuilds
rebuilds
5
from motion+
4
easing
steps() only

motion / layout-animations / layout anchor

after a motion.dev example
press the button: the panel cuts round it
margin_rebuilds/​layout-animations/​layout-anchor.tsx
Motion
layout, one anchor
here
a cut of the panel
anchor
the button, centred
size
80 px to 160 px

The panel cuts to its new size in one step; the button stays on the centre point, so it does not move.

motion / layout-animations / create button

after a motion+ example
open the button, pick a tile
margin_rebuilds/​layout-animations/​create-button.tsx
Motion
layoutId, AnimatePresence
here
a cut, then Step-in
tiles
six, one a step
close
the close mark or Esc

The button cuts to its panel, and the six tiles step in one step apart. A pick closes the panel and glitches the name it made.

motion / layout-animations / ios app folder

after a motion+ example
open the folder; Esc closes it
margin_rebuilds/​layout-animations/​ios-app-folder.tsx
Motion
layoutId, a scale
here
a cut, then Step-in
tiles
eight, in four columns
close
the close mark or Esc

The folder cuts to its open grid, and the eight tiles step in one step apart. Esc or the close mark cuts back.

motion / layout-animations / ios app store

after a motion+ example
open a card; Esc goes back
margin_rebuilds/​layout-animations/​app-store.tsx
Motion
layout, layoutId
here
a cut, then Step-in
open
the card, to a detail view
parts
four, one a step

A card that opens is a cut to the detail view, and its parts step in one step apart. Back or Esc cuts to the cards.

motion / layout-animations / toast: notifications list

after a motion+ example
add notices; each leaves after 5 s
margin_rebuilds/​layout-animations/​notifications-list.tsx
Motion
AnimatePresence, layout
here
a cut, then a Glitch
a notice
leaves after 5 s
most
four at once

A new notice cuts in at the top and glitches its name; one that goes cuts out and the rest close the gap.