Releases: hyperstown/pure-snow.js
Releases · hyperstown/pure-snow.js
v2.1.0
Another year, another version!
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.
Changes
count
attribute has been deprecated. Please usedata-count
,- Add support for window resizing. (Especially useful on mobile where user can easy change screen orientation)
v2.0.0
Version 2.0 is officially here!
Changes
- Added option to specify the number of snowflakes using the
count
attribute on the snow div element. - Added support for installation via npm.
- Added option to specify custom CSS styles as a global const,
BASE_CSS
. - Followed more conventional naming scheme for functions, variables and project itself.
total
variable will no longer work, please usecount
attribute orSNOWFLAKES_COUNT
const that will work just like total before.- Function
toggleSnow
has been replaced withshowSnow
that takes boolean value as argument. - Small fixes and improvements in code readability.
Happy winter holidays and happy coding!
v1.2.1
Cleanup update:
- improved snow generator
- run code formatter
- minor changes
v1.2.0
Enhancement update:
- add support for unfixed page height
- dynamic snow fall duration
- small fixes
v1.1.0
Important update to fit JavaScript naming scheme:
- all variables now use camelCase
v1.0.0
Initial release.
Just drop scripts into the project!