Skip to content

yassinefikri/js_animations

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DEMOS:

  1. Space Animation:

My image
demo.
CodePen demo.
js file to include on your web : "starsv3.js"

  1. Fireworks Animation:

My image
demo.
CodePen demo.
js file to include on your web : "fireworksv9.js"

  1. Rain Animation:

My image
demo.
CodePen demo.
js file to include on your web : "rainv3.js"

  1. WindTurbines Animation:

My image
demo.
CodePen demo.
js file to include on your web : "windTurbinev3.js"

  1. Snow Animation:

My image
demo.
CodePen demo.
js file to include on your web : "snowv5.js"

USAGE:

  • add to your html <div id="canvas_container"><canvas></canvas><div>
  • include the js animation file you want
  • set the height & width you want to the canvas parent (canvas_container)
  • in case you have multiple canvas on your web , consider adding an id to the canvas you want and changing this selector var canvas= document.querySelector("canvas"); to var canvas= document.getElementById("yourID");

About

JS Canvas Animations

Resources

License

Stars

Watchers

Forks