25'ten fazla konu seçemezsiniz Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.
 
 
 
 
rpm-mcarman b9f7ec4306 First Commit 3 yıl önce
..
.npmignore First Commit 3 yıl önce
History.md First Commit 3 yıl önce
Makefile First Commit 3 yıl önce
Readme.md First Commit 3 yıl önce
component.json First Commit 3 yıl önce
example.html First Commit 3 yıl önce
index.js First Commit 3 yıl önce
package.json First Commit 3 yıl önce

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