A command palette cut from one photograph: each matching command is a full-width band of the picture, out of register, and the hand's distance from the centre pulls the plates back together.
Stem Back office
Five things you can do from here, cut from one stall.
↑↓↵
Restock mimosa4 bunches leftcut from the mimosa
Deliveries today12 drops · van at 07:30cut from the crates
Opening hoursTue to Sun · 7 to 19cut from the awning
Restock tulipsMarket at 05:00cut from the tulips
New bouquetFrom today's stockcut from the anemones
Use it as a command palette or menu over one photograph. Pass src, size and items (required), filter the commands yourself and pass the result through matches; the search input stays in your own markup. Click or tap on a band calls onRun.
When not to use
Not for long result lists, dense data screens or forms, and each item is a band with a place in the picture. For an ordinary palette without a photograph use Command Palette.
Use it as a command palette or menu over a single strong photograph: filter the commands yourself, pass which ones match through matches, and keep the search input in your own markup. Effects are visual
pieces rather than controls: they do not replace the Interface components in dashboards and forms.
The effect needs your image through its image prop (see the table below). Use a JPEG or WebP of at
least 1600 px on the long side, under 200 KB (400 KB at full screen); host it on your own origin or
send CORS headers, because the browser blocks cross-origin textures. The demo images stay on this
site and are not installed.
The list is a listbox of options: point your input at it with aria-controls (listId) and aria-activedescendant, and move the highlight through active. The photograph is decorative.
The effect never takes focus. On touch screens an automatic hand sweeps the plates in and out of register; a finger takes over, a tap on a band runs its command, the hand returns 1.5 s after release and vertical scrolling stays with the page.
The bands stay fixed at their own places, the hand does nothing and the stack re-cuts in one step. The Register hooks read usePrefersReducedMotion, so the MotionKitProvider setting applies too.
DOM only: per frame a single custom property changes on the root; the bands re-cut in a 0.25 s CSS transition. The loop stops off screen and in hidden tabs.
Source size is checked against the 15 KB gzip budget for effects (pnpm size).
Technical sheet
Motion
calm
260 ms · bounce 0
lively
400 ms · bounce 0.3
playful
540 ms · bounce 0.45
Main spring of each temperament. Set it with the temperament prop or MotionKitProvider; the default is lively.
Size
Not measured yet · budget 15.0 kB gzip
Component and MotionKit helpers; excludes react, react-dom.
Dependencies
motion
Triggers
pointer movement, typing, click
Reduced motion
The bands stay fixed at their own places, the hand does nothing and the stack re-cuts in one step.
Keyboard
ArrowUp, ArrowDown
Move the highlight, from your input through `active`
Enter
Run the highlighted command through `onRun`
Browsers
Last 2 versions of Chrome, Edge, Firefox and Safari (iOS 16.4+)