Mobile-friendly Drag And Drop JavaScript Library – Drog.js

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.


Click here to move

Move

this

ELEMENT

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)

Related Posts

Leave a Reply

Your email address will not be published. Required fields are marked *