Skip to content
/ snow Public

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

License

Notifications You must be signed in to change notification settings

hawkgs/snow

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

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

Topics

Resources

License

Stars

Watchers

Forks