skip the tree
system / motion / navigation7 rebuilds

Navigation

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

the category

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

motion / navigation / command palette

after a motion+ example
type, then choose
margin_rebuilds/​navigation/​command-palette.tsx
Motion
AnimatePresence, animate
here
ui/command, no motion
type
the list cuts to the matches
Enter
runs it, a Glitch on the line

The list is always open. Each key cuts it to the commands that match, the highlight is one grey step, and the chosen command Glitches its line.

motion / navigation / floating action button

after a motion+ example
open the button
margin_rebuilds/​navigation/​floating-action-button.tsx
Motion
AnimatePresence, whileTap
here
play(), 4 frames
a frame
80 ms, one action
keys
arrows, Escape, focus back

The button cuts to a close mark and the actions cut in one a step, bent on whole cells. Escape or a choice closes it in one cut and focus goes back to the button.

motion / navigation / radial menu

after a motion+ example
open the ring
margin_rebuilds/​navigation/​radial-menu.tsx
Motion
AnimatePresence, whileHover
here
play(), 6 frames
a frame
80 ms, one item
keys
arrows round the ring
original
Radial Menu

Six items cut in round the ring, one a step, on whole cells. The focused item is the bone fill, and it cuts to the next item on each arrow key.

motion / navigation / context menu

after a motion+ example
right click the canvas
margin_rebuilds/​navigation/​context-menu.tsx
Motion
AnimatePresence, frame
here
ui/context-menu, no motion
open
one cut, at the pointer
sub menu
one cut, beside its item
original
Context Menu

A right click opens the menu in one cut at the pointer; the sub menu opens the same way. The highlight is one grey step and Escape returns focus to the box.

motion / navigation / mega menu

after a motion+ example
open a section
margin_rebuilds/​navigation/​mega-menu.tsx
Motion
AnimatePresence, layoutId
here
ui/navigation-menu, no motion
open
one cut under its trigger
switch
one cut to the next panel
original
Mega Menu

A panel of link columns cuts open under its trigger on hover, click or Enter. Moving to another trigger cuts to its panel; nothing slides between the two sizes.

motion / navigation / smooth tabs

after a motion+ example
change the tab
margin_rebuilds/​navigation/​smooth-tabs.tsx
Motion
AnimatePresence, layoutId
here
ui/tabs, a Glitch
mark
a bar that cuts to the tab
panel
cuts, its title glitches
original
Smooth Tabs

The mark under the chosen tab cuts to the next tab with no slide, and the panel cuts in place with its title Glitching once.

motion / navigation / tab select

after a motion+ example
choose a tab
margin_rebuilds/​navigation/​tab-select.tsx
Motion
layoutId, whileTap
here
ui/toggle-group, no motion
chosen
the bone fill
change
the fill cuts to the tab
original
Tab select

The bone fill cuts from one tab to the next. Arrow keys move focus along the row, Space or Enter chooses.