Skip to content

Latest commit

 

History

History
26 lines (17 loc) · 536 Bytes

README.md

File metadata and controls

26 lines (17 loc) · 536 Bytes

snow ❄️

A simple JS script for simulating 2D snow using the Canvas API.

Demo

Demo Page

Usage

Simply add the script to your HTML:

<script src="https://cdn.jsdelivr.net/gh/hawkgs/snow@main/scripts/snow.min.js"></script>

Then you can use the global Snow object in your code:

Snow.attachToElement(el, {
  width: el.clientWidth,
  height: el.clientHeight,
});

For more configuration options check snow.js config.