Dragster.js: a vanilla JavaScript library that adds mouse and touch drag and drop to user-defined HTML regions.
Key features:
- Move, replace, or clone elements across drop regions
- Works on desktop and mobile touch devices
- Drag handle support for grip-style interactions
- Full callback API to intercept and cancel any drag stage
- Dynamic update methods for elements added after initialization
- ES6 module only, no external dependencies
Good pick for kanban boards, content builders, or any UI where users reorder or transfer blocks.
👉 Blog Post
👉 GitHub Repo
👉 Live Demo
Top comments (0)