Lightweight JavaScript snowfall particle animation (under 650 bytes)
View a live demo here: https://pweth.com/javascript-snow/
- Create a canvas element with an ID of "snowfall-element"
<canvas id="snowfall-element">
-
Adjust the size of the canvas element as you require
-
Include the snowfall.js or snowfall.min.js file in your HTML (below your canvas element)
<script src="snowfall.min.js"></script>
- Let it snow! ❄️