@zcorky/movable

1.0.3 • Public • Published

NPM version Coverage Status Dependencies Build Status license issues

Movable

  • Make the element be movable anywhere.

Compatible

  • PC & Mobile

How to

  • 1 NPM
  • 2 Script
// 1 NPM
import Movable from '@zcorky/movable';

new Movable({
  handler: '.handler', // handler selector, default ".handler";
  container: '.container', // container select, default ".container"; if container doesnot exist, it will use handler as container.
  boundable: true, // enable boundary, default false, which means you can move anywhere;
});

// 2 Script
<script src="https://unpkg.com/@zcorky/movable/lib/index.umd.js"></script>
<script>
  new movable({
    handler: '.handler',
    container: '.container',
    boundable: true,
  })
</script>

Change Log

CHANGELOG.md

Readme

Keywords

none

Package Sidebar

Install

npm i @zcorky/movable

Weekly Downloads

0

Version

1.0.3

License

MIT

Unpacked Size

16.6 kB

Total Files

7

Last publish

Collaborators

  • uniquecolesmith