Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.
 
 
 
 
rpm-mcarman b9f7ec4306 First Commit před 3 roky
..
.npmignore First Commit před 3 roky
History.md First Commit před 3 roky
Makefile First Commit před 3 roky
Readme.md First Commit před 3 roky
component.json First Commit před 3 roky
example.html First Commit před 3 roky
index.js First Commit před 3 roky
package.json First Commit před 3 roky

Readme.md

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 to 1000
var scrollTo = require('scroll-to');

scrollTo(500, 1200, {
  ease: 'out-bounce',
  duration: 1500
});

License

MIT