Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
 
 
 
 
rpm-mcarman b9f7ec4306 First Commit il y a 3 ans
..
.npmignore First Commit il y a 3 ans
History.md First Commit il y a 3 ans
Makefile First Commit il y a 3 ans
Readme.md First Commit il y a 3 ans
component.json First Commit il y a 3 ans
example.html First Commit il y a 3 ans
index.js First Commit il y a 3 ans
package.json First Commit il y a 3 ans

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