drag-in-parent

1.0.1 • Public • Published

Drag Element in the parent's range;

Installation

    npm install drag-in-parent -S

Usage

    <div id="parent">
        <div class="move"></div>
    </div>
    import Drag from 'drag-in-parent';
    const parent = document.getElementById('parent');
    const move = document.querySelector('.move');
    new Drag(move, parent);

Readme

Keywords

Package Sidebar

Install

npm i drag-in-parent

Weekly Downloads

1

Version

1.0.1

License

ISC

Unpacked Size

3.54 kB

Total Files

3

Last publish

Collaborators

  • njr