scroll-to-y
v1.0.1
Published
Performant scroll to an arbitrary Y
Downloads
118
Readme
Scroll to y
var scrollToY = require('scroll-to-y');
// scrollToY(scrollTargetY, speed, easing);
//
// scrollTargetY: the target scrollY property of the window
// speed: time in pixels per second
// easing: easing equation to use
scrollToY(0, 1500, 'easeInOutQuint');
Easing Equations
- easeOutSine
- easeInOutSine
- easeInOutQuint