Skip to content
A real man's javascript snow library
JavaScript
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
README.md
snow.css
snow.js

README.md

crowd-snow

A real man's javascript snow library. No images. No IE support.

Demo

Demo on jsFiddle

Usage

Include snow.js and snow.css

Suggested markup

<div id="snow" class="snow">
</div>

Suggested css

.snow {
    color:#fff;
    position:relative;
    width:400px; /* whatever you want */
    height:500px; /* whatever you want */
}

Then DO IT

$('#snow').snow();

Then STOP IT

$('#snow').stopSnowing();

Options

flakeCount

The number of flakes

minDiameter

The minimum snowflake diameter (translates to height / width / font-size)

maxDiameter

The maximum snowflake diameter (translates to height / width / font-size)

minOpacity (0 to 100)

Minimum flake opacity

maxOpacity (0 to 100)

Maximum flake opacity

Credits

Based loosely on CSS3-Snowflakes

Something went wrong with that request. Please try again.