A JavaScript wrapper for PavelTheCoder's CSSnowflakes to activate on demand and control the amount.
-
Import the css/style.css and js/script.js.
-
Call the
snowstorm(X);
function in your own script or assign it to a button withonclick="snowstorm(X);"
replacing X with how many snowflakes you want.
Note: There are 2 styles of snowflake used for each iteration ❅
and ❆
.
Combine it with my countdown script and have it snow (virtually) on the 25th!
See my christmas countdown or advent calendar scripts for an example.
https://robsd.github.io/js-snowflakes
If you like this repo or used any of the code, please star ⭐ it and consider supporting me below...