1.0.4 • Published 4 years ago
@wolff-h/drag-scroll v1.0.4
drag-scroll
install
npm
$ npm install drag-scroll
<script> // as a module
<script src="somepath/drag-scroll.js"></script>
<script> // plain js
<script src="somepath/drags-croll.js"></script>
// delete the export sentence
usage
Notice: the target element must have a position defined
basic
import dragScroll from '@wolff-h/drag-scroll'
dragScroll({
element: target_element,
container: target_container,
})