Author: | erovas |
---|---|
Views Total: | 2,795 views |
Official Page: | Go to website |
Last Update: | June 27, 2025 |
License: | MIT |
Preview:
Description:
Drog.js is a tiny (1kb minified), cross-browser, and mobile-friendly drag and drop JavaScript library.
How to use it:
1. Import the Drog.js
into your project.
import "https://www.cssscript.com/mobile-friendly-drag-drop/Drog.min.js";
2. Enable the drag’n’drop functionality on an element within the document.
Drog.on(document.forms["drag-head"]);
3. Move the element to a specific position.
let x = 100; let y = 100; Drog.move(document.forms["drag-head"], x, y)
Changelog:
06/27/2025
v1.2.0 (09/25/2021)