https://github.com/wutility/snow-cvs
❄️ 🌨️nice snow animation using canvas
https://github.com/wutility/snow-cvs
animation canvas snow snow-animation snowflake
Last synced: 20 days ago
JSON representation
❄️ 🌨️nice snow animation using canvas
- Host: GitHub
- URL: https://github.com/wutility/snow-cvs
- Owner: wutility
- License: mit
- Created: 2020-01-26T11:52:37.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-09-10T19:58:31.000Z (over 3 years ago)
- Last Synced: 2025-04-18T23:59:55.045Z (about 1 month ago)
- Topics: animation, canvas, snow, snow-animation, snowflake
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/snow-cvs
- Size: 2 MB
- Stars: 5
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
- License: LICENSE.md
Awesome Lists containing this project
README
# ❄️ Nice snow canvas
Nice snow animation using canvas### [Demo](https://wutility.github.io/snow-cvs)
 [](https://www.jsdelivr.com/package/npm/snow-cvs)  
```bash
$ npm i snow-cvs --save
```### CDN
```html```
## Usage
```
import SnowCanvas from 'snow-cvs';
```## Examples
```js
const Snow = new SnowCanvas()// Set number of flakes (optional)
// default: window.innerWidth / 6
Snow.createSnowFlakes(2);const canvas = Snow.getCanvas(); // return HTMLCanvasElement
document.body.appendChild(canvas);
```## License
MIT