Magnetic Button
A button gently pulled toward the pointer inside a bounded magnetic field.
Buttons & Controls · React / Motion / Tailwind
Motion Fundamentals
Each component here isolates one motion idea you will reuse everywhere: a spring that follows intent, a stagger that sequences text, a tween that counts honestly, a layout transition that preserves spatial continuity, a height animation that never jumps, and a state change that morphs instead of swapping.
A button gently pulled toward the pointer inside a bounded magnetic field.
Buttons & Controls · React / Motion / Tailwind
A button whose label rolls character by character on hover or focus, revealing a duplicate line.
Buttons & Controls · React / CSS / Tailwind
A locale-aware count-up number that plays once in view and never shifts the layout.
Data & Feedback · React / Tailwind
Accessible tabs with a selection indicator that flows between tabs on a spring.
Navigation & Menus · React / Motion / Tailwind
An accessible accordion whose panels glide open to their natural height, with single or multiple open items.
Cards & Containers · React / CSS / Tailwind
A submit button that morphs through loading, success and error with a spring-driven width and drawn icons.
Buttons & Controls · React / Motion / SVG / Tailwind
A pill that morphs between idle, compact and expanded live activities on a spring.
Navigation & Menus · React / Motion / Tailwind
A drag-to-reorder list with a grip handle, lifted rows, layout animations and full keyboard reordering.
Cards & Containers · React / Motion / Tailwind
Pagination with a sliding active indicator, smart ellipsis windowing and numbers that roll in the direction of travel.
Navigation & Menus · React / Motion / Tailwind
Words that melt into one another through a liquid blur-and-threshold morph.
Typography & Text · React / SVG / CSS / Tailwind
A radio-group segmented control with a spring thumb, roving arrow keys, sizes and native form support.
Buttons & Controls · React / Motion / Tailwind
A grid filtered by tag chips and sorted from a menu, with items gliding between layouts as filters change.
Cards & Containers · React / Motion / Tailwind
An icon button whose glyph morphs between two states by interpolating SVG paths — play/pause, menu/close, heart and more.
Buttons & Controls · React / Motion / SVG / Tailwind
Letters that ripple in a springy wave from the letter nearest the pointer — on hover, focus, in view or continuously.
Typography & Text · React / Motion / Tailwind
Words printed on the faces of a 3D prism that tumbles to the next word, with the width reserved for the longest.
Typography & Text · React / CSS / Tailwind
Mobile tabs with side-by-side panels on native scroll-snap and an indicator that tracks the swipe continuously.
Navigation & Menus · React / CSS / Tailwind
A route transition wrapper using the View Transitions API with a Motion fallback, direction-aware presets and SPA focus management.
Navigation & Menus · React / Motion / CSS
List rows that reveal actions when swiped, with full-swipe triggers and an accessible Actions menu on every row.
Cards & Containers · React / Motion / Tailwind
Everything this set needs, combined. Each component remains a separate, self-contained file.
npm install motion