snow-cvs
v1.0.3
Published
Lightweight snow animation library using canvas
Downloads
7
Readme
❄️ Nice snow canvas
Nice snow animation using canvas
Demo
$ npm i snow-cvs --save
CDN
<script src="https://cdn.jsdelivr.net/npm/snow-cvs/dist/index.min.js"></script>
<!-- access via object : SnowCanvas -->
Usage
import SnowCanvas from 'snow-cvs';
Examples
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