Everyone farts. And now your web pages can too.
This is a fork of The Onion's fartscroll.js, created because the original project is no longer actively maintained and utilizes practices that are no longer recommend (e.g. Bower). This version aims to modernize the codebase with TypeScript, NPM support, unit tests, and other modern features.
# with pnpm
pnpm i @ridgehkr/fartscroll-ts
# OR
npm i @ridgehkr/fartscroll-ts
import fartScroll from '@ridgehkr/fartscroll-ts'
// Fart every 400 pixels scrolled
fartscroll()
// Fart every 800 pixels scrolled
fartscroll(800)
© Caleb Pierce. MIT License applies, extending original license by The Onion. See the LICENSE.