npm.io
1.0.0 • Published 6 years ago

antiscroller

Licence
MIT
Version
1.0.0
Deps
0
Size
37 kB
Vulns
0
Weekly
0
Stars
1

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
});

Keywords