5 rebuilds
skip the tree
system / motion / view5 rebuilds

View

The View 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+
0
easing
steps() only

motion / view / animateview: clip path

after a motion.dev example
open the draft, then close it
margin_rebuilds/​view/​animate-view-clip-path.tsx
Motion
a view transition, a clip path
here
useReveal(), 4 frames
a frame
80 ms, a stepped clip
close
one cut

The page opens from the corner of the stage as a clip that grows in four steps. Closing is one cut, and focus goes back to the button.

motion / view / animateview: reorder items

after a motion.dev example
shuffle the tags
margin_rebuilds/​view/​animate-view-reorder.tsx
Motion
a view transition, a reorder
here
a cut, then a held fill
moved
the held fill, 160 ms
reduced
the cut only

The tags cut to their new places. Each tag that moved shows the held fill for four steps, and nothing slides.

motion / view / animateview: toggle

after a motion.dev example
flip the switch
margin_rebuilds/​view/​animate-view-toggle.tsx
Motion
a view transition, a switch
here
ui/switch
a flip
one cut
thumb
no slide

The thumb and the fill cut to the other state in one step; the label says which state it is.

motion / view / animateview: transition types

after a motion.dev example
next and back wipe from opposite edges
margin_rebuilds/​view/​animate-view-types.tsx
Motion
typed view transitions
here
useReveal(), 4 frames
next
a clip from the right
back
a clip from the left

The kind of change picks the edge: next clips the new slide in from the right, back from the left, in four steps over the old slide.

motion / view / animateview: app store

after a motion.dev example
open a card, then close it
margin_rebuilds/​view/​animate-view-app-store.tsx
Motion
a card that opens to a page
here
useReveal(), 4 frames
open
a clip from the card corner
close
one cut; Escape too

A card opens into its page as a clip in four steps. Closing is one cut, and focus goes back to the card.