Jquery Snowfall Plugin 1.4
December 09, 2010
Added a few new things, you can now make flakes rounded (Thanks Luke), and give them shadows (for lighter colored pages) - thanks for the idea Yutt. Also I fixed some bugs that cause horizontal bar flickering (I hope).
Invoking the snow
[sourcecode language=“js”] $(document).snowfall(); $(‘#elementid’).snowfall({flakeCount : 100, maxSpeed : 10}); $(‘.class’).snowfall({flakeCount : 100, maxSpeed : 10}); [/sourcecode]
Snowfall Methods
[sourcecode language=“js”] // stopping the snow $(document).snowfall(‘clear’); $(‘#elementid’).snowfall(‘clear’); $(‘.class’).snowfall(‘clear’); [/sourcecode]
Options currently supported with default values
[sourcecode language=“js”] options = { flakeCount : 35, // number flakeColor : ‘#ffffff’, // string flakeIndex: 999999, // number minSize : 1, // number maxSize : 3, // number minSpeed : 2, // number maxSpeed : 3, // number round : false, // bool shadow : false // bool }; [/sourcecode]