Enjoy learning to code JavaScript with this relaxing video tutorial. In it, we will show you how to animate a bouncing ball with a trailing effect in your browser – using only HTML5 APIs (no external libraries).
This tutorial is intended for beginner level learners of JavaScript. Very basic HTML knowledge is assumed.
Code Gist:
https://gist.github.com/AutoScreencas...
0:00 Setup
4:27 Drawing a Square
7:20 Animating the Square
11:33 Drawing a Circle
16:36 Collision Detection
23:46 Improving Our Collision Detection
25:56 Trailing Effect
28:39 Final Animation