|
|
3 vuotta sitten | |
|---|---|---|
| .. | ||
| .npmignore | 3 vuotta sitten | |
| History.md | 3 vuotta sitten | |
| Makefile | 3 vuotta sitten | |
| Readme.md | 3 vuotta sitten | |
| component.json | 3 vuotta sitten | |
| example.html | 3 vuotta sitten | |
| index.js | 3 vuotta sitten | |
| package.json | 3 vuotta sitten | |
Smooth window scroll to position with requestAnimationFrame and Tween.
$ component install component/scroll-to
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 to 1000var scrollTo = require('scroll-to');
scrollTo(500, 1200, {
ease: 'out-bounce',
duration: 1500
});
MIT