0.1.0 • Published 4 years ago

properjs-jscroll v0.1.0

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

JScroll

A smooth scroll JS library.

Attribution

This is a spiritual "fork" of JScroll by Jesper Landberg. Here the library is reusable and is actively being enhanced. For instance, I have already added a JScroll.scrollTo method to the utility.

Installation

npm install properjs-jscroll --save-dev

Usage

You will need to add a js-smooth class to your main container and a js-smooth-section class to any elements you want to be smooth.

import JScroll from "properjs-jscroll";

const jscroll = new JScroll({
    scrollbar: true
});