- Updated README.
- Removed
-webkit-
prefix for animation and transform CSS properties. - Added
hasSupport()
static method. - Simplified installation in HTML page, only one line is needed.
- Improved positioning of snowflakes when resizing the window.
- Fix for server rendering.
- Improved randomization of snowflake positions.
- Add
autoResize
param.
Fix: Resize container for snowflakes only if necessary #51.
- Fixes for TypeScript typings.
- Added show/hide methods.
BREAKING CHANGES:
Before:
Snowflakes();
// or
new Snowflakes();
After:
new Snowflakes();
- Code rewritten on TypeScript.
- Added TypeScript typings.
- Support for es6 modules.
- Slowed down rotation of snowflakes, changed default some properties #20.
- Separate styles for multiple instances #29.
- Removed z-index for every snowflake, only common z-index for container of snowflakes #27.
- Updated dev deps.
- Updated dev deps.
- Code refactoring.
- Update dev deps in package.json.
- Fix color #25.
- Update dev deps in package.json.
- Update dev deps in package.json.
- Fixed Safari scroll problem #21.
- Added CSS
user-select: none
andpointer-events: none
for snowflakes.
- Updated dev deps in package.json.
- Updated dev deps in package.json.
- Added
minSize
andmaxSize
properties. You can set the size of snowflakes. Example. - Added
minOpacity
andmaxOpacity
properties. - Removed
useScale
property. useRotate
property renamed torotation
.- Added light version without SVG images:
dist/snowflakes.light.js
anddist/snowflakes.light.min.js
. You can set your own kind of snowflakes. Example.
demo.html
moved tohttps://github.com/hcodes/demo-snowflakes
example/
→examples/
- Added new examples
- Small refactoring
- Now snowflakes in SVG format.
- You can change the color of snowflakes. The property
color: "red"
. Default:"#5ECDEF"
. - Snowflakes can fly without wind. The property
wind: false
. Default:true
.
Fixed Babel dependencies #10.
Removed dist/
.
- Small fix for server side #7.
- Added examples.
- Fixes for constructor.
Removed console.log.
- CSS optimization.
- Added Gulp and Rollup with Babel.
First public release.