1.0.0 • Published 5 years ago

antiscroller v1.0.0

Weekly downloads
4
License
MIT
Repository
github
Last release
5 years ago

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