Skip to content

JavaScript Library for creating Drag & Drop: Draggable elements and Drop zones

License

Notifications You must be signed in to change notification settings

qrailibs/dragndrop.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

dragndrop

dragndrop.js is lightweight javascript micro-framework to create drag & drop functionality, Easy-to-use.

Installation

  1. Copy code of src/dragndrop.min.js
  2. Create file dragndrop.min.js in your project dist folder
  3. Write <script src="dist/dragndrop.min.js"></script> in your .html page

How to Use

You have to simply initialize drop zone (where elements will be dropped) and draggables (elements that will be dragged):

<div id="drop-zone"></div>
<div class="draggable">Draggable</div>
<div class="draggable">Draggable</div>
<div class="draggable">Draggable</div>

<script src="dist/dragndrop.min.js"></script>
<script>
dragndrop.dropZone('#drop-zone');
dragndrop.draggable('.draggable');
</script>

Releases

No releases published

Packages

No packages published