scroll-to
Smooth window scroll to position with requestAnimationFrame and Tween.
Installation
$ component install component/scroll-to
API
scrollTo(x, y, [options])
Scroll to the given point (x, y)
with the given options
:
ease
easing function defaulting to "out-circ" (view ease for more)duration
animation duration defaulting to1000
var scrollTo = ; ;
License
MIT