Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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