Basic Snowflakes Falling Effect With JavaScript And Canvas – snow.js

Category: Animation , Javascript | March 5, 2018
Authormahefnawy
Last UpdateMarch 5, 2018
LicenseMIT
Tags
Views7,492 views
Basic Snowflakes Falling Effect With JavaScript And Canvas – snow.js

snow.js is a vanilla JavaScript library to draw random snowflakes falling effects on an HTML5 canvas element.

How to use it:

Create an empty canvas element on which you want to draw the snow falling effect.

<canvas id="sky"></canvas>

Download and put the JavaScript file ‘snow.js’ at the bottom of the screen.

<script src="snow.js"></script>

That’s it. For better experience, I recommend you to change the background color of the whole body.

body {
  background: #0F8A5F;
}

You Might Be Interested In:


One thought on “Basic Snowflakes Falling Effect With JavaScript And Canvas – snow.js

Leave a Reply