JavaScripting

The definitive source of the best
JavaScript libraries, frameworks, and plugins.


  • ×

    Fartscroll.js

    You want fart noises as you scroll? We've got you covered.
    Filed under 

    • 🔾48%Overall
    • 2,796
    • 82 days
    • 🕩237
    • 👥12

    fartscroll.js

    Everyone farts. And now your web pages can too.

    Now with 100% less jQuery! (Sorry, jQuery, we still love you)

    Setup:

    1. Include "fartscroll.js" in your page. (You can use the latest from our CDN: //code.onion.com/fartscroll.js)
    2. Initialize the fartscroll plugin once the DOM has loaded:
    // Fart every 400 pixels scrolled
    fartscroll(); 
    
    // Fart every 800 pixels scrolled
    fartscroll(800);
    

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

    Show All