SnowflakesJS
Beautiful snowflakes falling down on your webpages.
Full TypeScript support.
Demo
Installation
npm install snowflakesjs
// or yarn
yarn add snowflakesjs
Usage
Basic
// import package in your code; // add snowflakes to the webpage's body element (usually this means fullscreen)const scene = ; // start snow fallscene; // stop snow fallscene; // toggle snow fall on/offscene;
Customisation
// import package in your code; // add snowflakes to a container with extra customisationsconst scene = '#mycontainerid' color: '#bfeaff' // change snowflake color (default #ffffff) volumn: 1000 // change snow volumn to make it a storm (default 300); // start the snow fallscene;
Directly reference in browser