Skip to content

robbens/DragScroll.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DragScroll.js

DragScroll.js is a small library for scrolling by dragging your mouse across the specified container.

Usage

import DragScroll from "dragscroll";

...

new DragScroll({
    el: this.element
});

Alternative method:

<script src="/dist/drag-scroll.js"></script>
<script>
    const scrollableElement = document.querySelector('.drag-scroll');
    new DragScroll({
        el: scrollableElement
    });
</script>

Demo

TODO

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published