Awesome Javascript library to make html elements movable on the go!
See Live Demo.
You Can Use these Scripts to include movable.js
or movable.min.js
in your website.
<script src="https://rawcdn.githack.com/arnav-kr/MovableJs/6f6976fe5e798d8716b9f46aff46e2102313ffa3/dist/movable.js"></script>
<script src="https://rawcdn.githack.com/arnav-kr/MovableJs/6f6976fe5e798d8716b9f46aff46e2102313ffa3/dist/movable.min.js"></script>
Define a Movable
object with id of HTML element as its Parameter, store it in a variable. Use init();
method to initialize. And Done!
HTML:
<div id="myDiv"> I am a Movable </div>
JS:
var movable = new Movable("myDiv");
//use init(); to initilize
movable.init();
movable.unInit();
//Use unInit(); method to Uninitilize the Movable
Methods | Uses |
---|---|
init(); |
Used to initilize the Movable . |
unInit(); |
Used to uninitilize the Movable . |
Created By Arnav Kumar