goodies / motion ui lab
Motion UI Lab
19 springy components built with Motion, themed with the site's design tokens. Every tile names its source file under components/goodies/motion-ui β grab the export you want, any time.
cards
Cards
Sticker cards you can tilt, flip, and throw around.
TiltCard
cards.tsx3D tilt that follows the cursor with springy easing.
FlipCard
cards.tsxClick to flip β 3D rotation with two faces.
DragCard
cards.tsxGrab and throw it β drag physics with a spring return.
text
Text effects
Type that moves: waves, counters, and cycling words.
WavyText
text.tsxCharacters take turns bouncing in an endless wave.
CountUp
text.tsxA number that springs up from zero when scrolled into view.
WordCycle
text.tsxCycles words with the springy pop from the homepage hero.
loaders
Loaders
Waiting, but make it fun.
DotsLoader
loaders.tsxThree dots hopping in sequence.
MorphLoader
loaders.tsxA spinning square that melts into a circle and back.
SpringProgress
loaders.tsxA progress bar that springs to each new value.
controls
Controls
Inputs with instant, tactile feedback.
SpringToggle
controls.tsxA switch whose knob glides across with a layout spring.
LikeButton
controls.tsxPops on click and bursts confetti particles outward.
overlays
Overlays
Modals and toasts that enter with intent and leave politely.
SpringModal
overlays.tsxSprings up from below over a dimmed backdrop. Click outside to close.
ToastStack
overlays.tsxToasts slide in bottom-right, restack, and auto-dismiss.
lists
Lists & layout
Shared-layout magic: reordering, gliding pills, and cascades.
ReorderList
lists.tsxDrag rows to reorder β Motionβs Reorder primitives.
- Design it
- Build it
- Break it
- Ship it
LayoutTabs
lists.tsxA shared-layout pill that glides between tabs.
Sketch, scaffold, and make the thing exist.
StaggerList
lists.tsxRows reveal one after another β press replay to rewatch.
- 1. Clone the repo
- 2. Break something
- 3. Fix it better
- 4. Push to prod