React Drag and Drop Animation – Spring Sortable List
Smooth drag-and-drop sortable list for React with live spring displacement, pointer drag handles, and full Space + Arrow keyboard reordering.
Design tokens
CSS variables
Spring engine
120 Hz loop
Gesture lock
Touch & mouse
Sound palette
Web Audio
Design tokens
CSS variables
Spring engine
120 Hz loop
Gesture lock
Touch & mouse
Sound palette
Web Audio
Live vector preview rendered straight from the same 120 Hz spring engine—no heavy GIF compression artifacts, zero layout shift.
Customization playground
Tune outline, fill, accent, text colour, and shadow direction live above. The snippet updates automatically for copy-and-paste.
Customize
<SortableList />Installation
Install directly into your project source with the Kipluo CLI (React/Tailwind v4) or add the matching Flutter package.
Install
$ npx kipluo add sortable-listWorking code example
import { SortableList } from "@/components/kipluo/sortable-list";
export function RoadmapList() {
return (
<SortableList
items={[
{ id: "tokens", label: "Design tokens", meta: "CSS variables" },
{ id: "spring", label: "Spring engine", meta: "120 Hz loop" },
{ id: "sound", label: "Sound palette", meta: "Web Audio" },
]}
onReorder={(next) => console.log("New order:", next.map((i) => i.id))}
/>
);
}What Sortable List does
- Tracks pointer drag offsets directly on GPU-composited transforms while sibling items spring smoothly out of the way to preview drop slots.
- Provides complete keyboard reordering (Space to pick up, ArrowUp/ArrowDown to move, Space to drop) with aria-live position announcements.
- Zero external DnD framework overhead—owns its pointer capture and spring settlement cleanly.
Accessibility & sound behavior
Keyboard & screen readers: Focus a grip handle, press Space to grab, Arrow Up / Down to move, and Space or Escape to drop.
Reduced motion: Automatically respects prefers-reduced-motion: reduce by snapping spring targets immediately without jarring travel.
Sound cues: A pop on pickup, an ascending tick on each swap, and a soft boop on drop. Disable per instance with sound={false} or globally via setSoundEnabled(false).
API reference
itemsSortableItem[]- Initial list items. Default
Demo rows. onReorder(items: SortableItem[]) => void- Called whenever items swap order.
soundboolean- Plays this component's sounds. The global switch setSoundEnabled(false) silences every component. Default
true.
Framework compatibility
| Platform / Tool | Status | Details |
|---|---|---|
| React 18 & 19 | Full support | Zero peer runtime lock-in beyond @kipluo/core. |
| Next.js App Router | Full support | Ships with 'use client' boundaries; SSR-safe hydration. |
| Vite / Remix / Astro | Full support | Standard ESM TypeScript source files you own. |
| Tailwind CSS v4 & shadcn/ui | Native | Inherits CSS variables and installs via shadcn registry or CLI. |
| Flutter (Dart) | Native package | Matching spring physics, themes, and PCM audio in packages/flutter/kipluo. |
Build it yourself: related tutorials
All tutorials →How to Create Interactive Dragging with Pointer Events
Master unified mouse, touch, and pen dragging in React using setPointerCapture, touch-action, velocity sampling, and clean pointercancel recovery.
How to Handle Interrupted Animations in React
Learn why rapid clicks, mid-flight drags, and unmounts break React animations—and how velocity-preserving springs and proper cleanup make them unbreakable.
How to Implement Spring Physics Without a Heavy Animation Library
Write a rock-solid 45-line semi-implicit Euler spring engine in TypeScript with fixed 120 Hz sub-stepping, zero dependencies, and true velocity preservation.
Related components
- Open component →Spring Drawer HandleFree
Pullable sheet handle with rubber-band overscroll, three magnetic snap detents (Peek, Half, Full), and a velocity-projected throw that settles with a soft click on every lock.
- Open component →Draggable KanbanPaid
Two-column mini Kanban board where tasks hop smoothly between Todo and Shipped with spring recoil and animated lane counters.
- Open component →Hold to ConfirmFree
Press and hold to fill the ring and commit a destructive action. Letting go early snaps back cleanly and never fires.
- Open component →Expandable Search PillFree
Compact search icon button that springs open into a focused query pill with clear button pop and Escape dismissal.
- Open component →Spring Split PaneFree
Draggable dual-pane divider with magnetic 33% / 50% / 67% snap detents, rubber-band min-width resistance, and double-click reset.
- Open component →Spotlight Bento CardFree
Interactive bento tile with a spring-lagged radial spotlight glow tracking your pointer, subtle 3D parallax layers and press depth squash.