Report a problem or share feedback← Catalog
Reorder animation
curatedfreemotion/reorder-items
An example of animating when items are reordered, using Motion for React's layout prop.
$
pnpm add motion # then adapt the free source from https://motion.dev/examples/react-reorder-itemsnpm deps: motion
Our notes
Reorder: drag-to-reorder lists with automatic layout animation — settings lists, kanban columns, playlists. Free example (motion is MIT); copy and adapt the source from the example page.
- Source
- Motion (motion.dev)
- Kind
- transition
- Categories
- transition
- Use as
- recipe — technique you apply to your own markup
- Applies to
- tablecard
- Motion
- on drag, state · medium · motion · low cost
- Tags
- motion
- Licence
- motion / motion/react / motion-v are MIT. Motion+ (premium components, example source, AI Kit pro tools) is paid — one-time Personal licence or per-seat Business.
- Live demo
- motion.dev
- Docs
- motion.dev
Similar
Compare all 4 →- Layout animationmotion/layout-animation`layout` prop: elements animate to their new size/position when state changes (expanding cards, accordion rows, reflowing grids). No height hacks. Free example (motion is MIT); copy and adapt the source from the example page.
- Card resizetransitions/card-resizeTweening a container's width or height when its layout state changes (compact ↔ expanded card, collapsing panel, list row toggling extra detail). Pure CSS — no JS required beyond the class toggle that drives the size change.
- AnimateView: App Storemotion/animate-view-app-storeAn example of animating cards inspired by the iOS App Store using AnimateView's shared element transitions from Motion for React.