You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
rpm-mcarman b9f7ec4306 First Commit преди 3 години
..
.npmignore First Commit преди 3 години
History.md First Commit преди 3 години
Makefile First Commit преди 3 години
Readme.md First Commit преди 3 години
component.json First Commit преди 3 години
example.html First Commit преди 3 години
index.js First Commit преди 3 години
package.json First Commit преди 3 години

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