0.3.0 • Published 9 years ago

scrollfps.js v0.3.0

Weekly downloads
6
License
MIT
Repository
github
Last release
9 years ago

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();
})