Falling Snow on HTML Pages

This article is outdated. Please visit the Creating Falling Snow in HTML/JS tutorial instead.

Being a hardware/software fanatic, I was doing my daily rounds around popular computing sites checking up on the day's latest downloads. Because it was the holiday season, numerous sites had their layouts and graphics changed to reflect the holiday season. One site,, had something that I had never seen before in a Web site; falling snow that goes over text and other objects.

This effect is the same as the falling snow you saw in this page a moment earlier. Here's how to create this effect:

  1. Open your HTML page that you wish to apply the falling snow effect to in Notepad or another HTML editor.
  2. Find the section of code between your <body> and </body> tags. Copy and paste the code from the following box between your body ( <body> , </body> ) tags:

[ copy and paste the above code in your HTML page ]

  1. Simply save the file and preview it in your browser (Internet Explorer preferably).

I'd like to thank Scott Hermanson of for being generous enough to answer my e-mail with the JavaScript file during the busy holiday season. If you haven't seen his site, be sure to point your browser to:

Just a final word before we wrap up. If you have a question and/or want to be part of a friendly, collaborative community of over 220k other developers like yourself, post on the forums for a quick response!

Kirupa's signature!









SUPPORTERS:'s fast and reliable hosting provided by Media Temple.