Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 5 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 (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2021-09-10T19:58:31.000Z (about 3 years ago)
- Last Synced: 2024-03-23T00:08:32.420Z (8 months ago)
- Topics: animation, canvas, snow, snow-animation, snowflake
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/snow-cvs
- Size: 2 MB
- Stars: 5
- Watchers: 2
- 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)
![snow animation](https://badgen.net/npm/dt/hixo) [![](https://data.jsdelivr.com/v1/package/npm/snow-cvs/badge)](https://www.jsdelivr.com/package/npm/snow-cvs) ![bundlephobia badge](https://badgen.net/bundlephobia/min/snow-cvs) ![bundlephobia badge](https://badgen.net/bundlephobia/minzip/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