How to use when you clone/checkout this repository
If you check it out from this repository please run "yarn install" to install all necessary dependencies. After that you can run "yarn build" to create a production bundle or "yarn start" to launch a webservice on port 8080 and see snowflakeJS in action.
How to use from snowflake.min.js
Incluse the snowflake.min.js (located in dist folder) file in your webpage. After that you can use it like follow:
const snowflake = 252505000525;snowflake;
Currently it comes as umd definition.
How to use when install with npm
It comes as es6 module. You can simply import it to your project.
;const snowflake = ;snowflake;
Parameters in detail:
- 25 = FPS
- 250 = inital count of snowflakes
- 5000 = lifetime in ms
- 5 = max fall speed
- 25 = max size of snowflake
LET IT SNOW.