Saturday, March 19, 2016

Flatulent Maps

One of the most useful but underused JavaScript libraries on the web has to be the Onion's fartscroll.js. This simple little library allows you to add farting noises to your web sites. Include fartscroll.js on your website and the page will emit a tiny 'trump' every time the user scrolls up or down the page.

Leaflet,FartZoomPan extends the library so that it works with Leaflet maps. If you add Leaflet.FartZoomPan to your Leaflet maps you can create farting noises every time the map is zoomed in or out, or when the user pans the map.

You can view Leaflet.FartZoomPan in flatulent action on this Farting Map demo.

No comments: