Drag Reorder demonstrates list reordering without a real user: a simulated cursor grabs a row by its drag handle, pulls it past the row below so the two swap, then slides back and releases. The full gesture runs on a GSAP timeline that repeats. Built with React and Tailwind CSS. Use it in feature grids for kanban tools, task managers, and any product where drag ordering matters.
Installation
Install dependencies.
Copy and paste the following code into your project.
Unlock the full library
Get all pro blocks, components & illustrations, and production-ready Next.js + Tailwind templates.
Update the import paths to match your project setup.
Related blocks
- Mockup: Analog Clock
A live-ticking analog clock face with metallic bezel, glass sheen, and smooth-sweep hands driven by system time.
- Mockup: Clerk Bento
A Clerk.com-inspired authentication bento grid — 11 hover-gated mockup cards arranged in a 3×4 bento layout with a wide API keys + CLI bottom row.
- Mockup: Code Diff
A terminal-style code diff viewer with syntax-highlighted add/del lines, staggered reveal animation, and a copy button.
- Mockup: Collab Cursors
Two named multiplayer cursors wandering a shared canvas on independent timelines, each selecting different shapes.
