node package manager
Orgs are free. Discover, share, and reuse code in your team. Create a free org »

properjs-scroll2

scroll2

A basic scrollto function without all the fuss.

Installation

npm install properjs-scroll2 --save-dev

Usage

var scroll2 = require( "properjs-scroll2" );
 
// Scroll vertical 
scroll2({
    y: 1000,
    ease: Easing.easeOutCubic,
    duration: 600
});
 
// Scroll horizontal 
scroll2({
    x: 1000,
    ease: Easing.easeOutCubic,
    duration: 600
});