Skip to content

Latest commit

 

History

History
16 lines (11 loc) · 442 Bytes

README.md

File metadata and controls

16 lines (11 loc) · 442 Bytes

fartscroll.js

Everyone farts. And now your web pages can too.

  1. Include "fartscroll.js" in your page.
  2. Initialize the fartscroll plugin once the DOM has loaded:
// Fart every 400 pixels scrolled in the document
fartscroll(document); 

// Fart every 800 pixels scrolled in the document
fartscroll(document, 800);

More info at http://theonion.github.io/fartscroll.js/.