Skip to main content

Rainyday.js gives your browser a pleasant shower

It's a lovely day out in the world beyond the Creative Bloq office right now, and there's not much worse than being stuck inside when it's nice out, right? We'd much rather have rain hammering against the windows – hopefully easing off a bit when it's time to go home.

If you feel the same, there's an excellent browser-based way to simulate looking through a window on a rainy day and watching those raindrops trickle down the glass. It's called rainyday.js, by Marek Brodziak, and it's a smart piece of JavaScript that'll run in most decent browsers and render impressive raindrops - using HTML5's canvas feature - even on a fairly slow computer.

You can see some basic demos here but it's already been adapted into something a little more impressive; take a look at, where they've taken the basic script and added adjustable sound effects. Lovely!

You're welcome to use rainyday.js for your own web projects, too; just grab the source from GitHub and get to work. And if you're interested in how it all works, there's a great article by Marek on how he created rainyday.js here.

Words: Jim McCauley

Liked this? Read these!

Made something amazing with JavaScript? Tell us in the comments!