- Notifications
You must be signed in to change notification settings - Fork0
A JavaScript wrapper for PavelTheCoder's CSSnowflakes to activate on demand and control the amount.
License
NotificationsYou must be signed in to change notification settings
robsd/js-snowflakes
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
A JavaScript wrapper forPavelTheCoder'sCSSnowflakes to activate on demand and control the amount.
Import thecss/style.css andjs/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 mycountdown script and have it snow (virtually) on the 25th!
See mychristmas countdown oradvent 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...