block by boeric deb4dfb7bc6f1f9e9a5b3bdd4ad2cc2c

Drag and Drop Using Native DOM Methods

Full Screen

Drag and Drop

Demo of drag and drop using only native DOM methods.

Usage: Grab one of the randomly generated elements and drag it around the four droppable zones. When when the drag is complete, the item will be appended to the “destination” zone.

The demo shows simple uses of:

index.js

index.html

styles.css