Drag to reorder

Keep pickup, placeholder, and drop states clear while reordering.

Preview

Dragging an item changes its list position while surrounding items animate toward their prospective slots.

Preview
  • Drag item A
  • Drag item B
  • Drag item C

Implement Drag to reorder: Keep pickup, placeholder, and drop states clear while reordering. Use Duration 180ms, Distance 48px, Pickup scale 103%, Easing snap. Trigger it from real pointer, touch, or keyboard interaction. Use semantic HTML, scope CSS to .motion-demo--drag-to-reorder, and mount the provided vanilla JavaScript interaction runtime. Provide equivalent low-motion behavior for prefers-reduced-motion and .force-reduced-motion.

Learn more