easescroll

0.0.10 • Public • Published

Easescroll

var Easescroll = require('easescroll');
 
// Easescroll(targetY, speed, easing);
// 
// targetY: the target scrollY property of the window
// speed: time in pixels per second
// easing: easing equation to use
 
Easescroll(0, 60, 'easeInOutQuint');
 

Demo

node demo/server.js

Open http://localhost:8000, scroll to bottom and click on the trigger

Easing Equations

  • easeFrom
  • easeTo
  • easeOutSine
  • easeInOutSine
  • easeInOutQuint
  • easeInOutCubic
  • bounce
  • bouncePast
  • elastic
  • easeOutBounce

Readme

Keywords

none

Package Sidebar

Install

npm i easescroll

Weekly Downloads

3

Version

0.0.10

License

ISC

Last publish

Collaborators

  • svenanders