antiscroller

OS X Lion style cross-browser native scrolling on the web.

Usage no npm install needed!

<script type="module">
  import antiscroller from 'https://cdn.skypack.dev/antiscroller';
</script>

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