Snowfall Plugin Updated

Updated the snowfall plugin that was released yesterday with a few more features.  The primary new feature allows you to specify which elements you want the snow to appear in. An example of this can be seen below. View a full page demonstration


$('#snow-window').snowfall({flakeCount : 100, maxSpeed : 10});

In addition to snowing within elements there are some more options available, properties available are

flakeCount,
flakeColor,
flakeIndex,
minSize,
maxSize,
minSpeed,
maxSpeed

You can still initialize the plugin with

$(document).snowfall();

but the flakes will not use fixed for positioning, they will now travel down the page completely. On some long pages this will make it seem like its not “snowing” as much. Im working on a few more updates that should be released in the following days. If you end up using this I’d love to know. You can download the most recent version here.


Tags: , , ,

7 Responses to “Snowfall Plugin Updated”

  1. Kim ( December 20, 2009 at 6:39 pm)

    I really enjoy you.

  2. Ivan ( December 24, 2009 at 6:01 am)

    Thanks, just a little notice. In my IE8 horisontal scrolling escaped only after:
    if(this.x > (elWidth) – 40 || this.x < 40)

  3. admin ( December 24, 2009 at 10:56 am)

    ah nice, thanks. Yeah I just put an arbitrary value in there (I think 6). Ill update it to 40 and see how it performs on other browsers as well.

  4. zarvox ( February 4, 2010 at 6:32 pm)

    cool! next version with wind…

  5. Anthony ( April 22, 2010 at 9:26 pm)

    So let’s see.. if I wanted it to just snow for a time and then turn it off would I call snowfall again with a count of zero?

  6. Jared ( April 25, 2010 at 11:59 pm)

    Very nice! How hard would it be to make it have a small transparent png falling and rotating instead of the snowflakes?

  7. admin ( April 26, 2010 at 12:04 pm)

    Anthony, that wont work unfortunately, but ill update the code within the week and add a stop, or clear function.

    Jared, It wouldn’t be too hard, I just prefer the single pixels. Maybe ill update it and add an image option.

Leave a Reply