antiscroller
v1.0.0
Published
OS X Lion style cross-browser native scrolling on the web.
Downloads
6
Readme
antiscroller
OS X Lion style cross-browser native scrolling on the web.
A fork from original Antiscroll library with no jQuery dependency.
Usage
Install using NPM
npm i antiscroller
Add using UNPKG
<script src="https://unpkg.com/antiscroller"></script>
Initialize with the container
<div id="container" class="antiscroll-wrap">
<div class="antiscroll-inner">
<!-- Your scrollable large content -->
</div>
</div>
import Antiscroll from 'antiscroller'; //for ES6
var container = document.getElementById("container");
var scroller = new Antiscroll(container, {
autoHide: false
});