0.3.0 • Published 9 years ago
scrollfps.js v0.3.0
scrollfps.js
A little library that could make your site scroll faster.
Installation
With component(1):
$ component install strangeworks/scrollfps.js
With a stand-alone build
<script src='scrollfps.min.js'></script>
Usage
- Add
data-scrollfps
to<body>
tag.
<html>
...
<body data-scrollfps>
...
</body>
</html>
- Call scrollfps inside your domready handler
var scrollps = require('scrollfps.js'),
domready = require('domready')
domready(function() {
scrollfps();
})
0.3.0
9 years ago