Draggable-Elements is a JavaScript library for, you guessed it, draggable elements. It comes with different options that you may configure to your liking and is extremely easy to start. It is a stand-alone library with no dependencies.
Main Page: https://christianfigueroa.github.io/JavaScript/Draggable-Elements/home
The above gif shows a small demo of the library in action (Link to play around with it).
new DraggableElement(element, [options]);
DraggableElement(element, [options]);
element.draggableElement([options]);
There are three ways to instantiate a new draggable element. The argument element
refers to any regular HTMLElement. options
can be a JSON object with certain key-value pairs that determine how the element is to behave. The different options can be found here.
The documentation pages can be found here for all versions.
v1.0
Initial Release
GitHub: ‣ Minified ‣ Development
Email: figgchristian@gmail.com
License (MIT)