jQuery Snowfall 1.5

Added snow buildup to the plugin, so now you can pass a jquery selector in the collection option and the snow will collect on top of all the elements matched. It uses the canvas tag so the snow wont collect in IE8 or lower. To enable collection you can do the following

cdl_capture_2011-11-29-09_ 000

Repo on Github
Google code link
Download Jquery Snowfall 1.5
View the plugin in action

Added snow buildup to the plugin, so now you can pass a jquery selector in the collection option and the snow will collect on top of all the elements matched. It uses the canvas tag so the snow wont collect in IE8 or lower. To enable collection you can do the following

snowfall({collection : 'element'});

Element can be either a class or id or a list such as

$(document).snowfall({collection : '.elements'});

$(document).snowfall({collection : '#element'});

Thats pretty much it for new options below is the standard way of using the plugin.

Invoking the snow

$(document).snowfall();

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

$('.class').snowfall({flakeCount : 100, maxSpeed : 10});

Snowfall Methods

// stopping the snow

$(document).snowfall('clear');

$('#elementid').snowfall('clear');

$('.class').snowfall('clear');

Options currently supported with default values

Source

http://www.somethinghitme.com/2011/10/05/jquery-snowfall-1-5-update-now-with-snow-buildup/

Leave a Reply