Snowfall effect written in pure JavaScript. No additional libraries, no dependencies. Works in every modern browser.
MIT License
Bot releases are visible (Hide)
This time it's a smaller update which focus is on improving variable naming and adds window resizing support!
Important note: We no longer use count
attribute to set snow count. Instead now we use data-count
which is valid HTML data attribute. Additional info. Thanks @designconcepts for reporting this #8.
count
attribute has been deprecated. Please use data-count
,Published by hyperstown almost 2 years ago
count
attribute on the snow div element.BASE_CSS
.total
variable will no longer work, please use count
attribute or SNOWFLAKES_COUNT
const that will work just like total before.toggleSnow
has been replaced with showSnow
that takes boolean value as argument.Happy winter holidays and happy coding!
Published by hyperstown almost 2 years ago
Published by hyperstown almost 3 years ago
Enhancement update:
Published by hyperstown almost 3 years ago
Important update to fit JavaScript naming scheme:
Published by hyperstown almost 3 years ago
Initial release.
Just drop scripts into the project!