0.0.0 • Published 1 year ago

moving v0.0.0

Weekly downloads
1
License
-
Repository
-
Last release
1 year ago

moving

A tiny library to make html node movable.

Compatibility: >= IE9. (Because of using transform style).

Demo is here.

Usage.

Common.js:

const moving = require('moving')

const myDiv = document.querySelector('#my-div')

moving.setDraggable(myDiv)  // Now it can move to anywhere.
moving.setUndraggable(myDiv)  // Stay here forever.

Use it directly:

<script src="node_modules/moving/src/index.js"></script>
<script>
  const myDiv = document.querySelector('#my-div')

  moving.setDraggable(myDiv)  // Now it can move to anywhere.
  moving.setUndraggable(myDiv)  // Stay here forever.
</script>

License

MIT.

0.0.0

1 year ago

0.1.2

7 years ago

0.1.1

7 years ago

0.1.0

7 years ago