Each canvas must be visible underneath another canvas. They are the attributes this element accepts. You click the video and pieces explode, yet the video keeps playing its segment/position during the explosion while it returns to its original position. When the border is reached it bounces back: See the Pen HTML Canvas fun with circles, not interactive by Flavio Copes (@flaviocopes) on CodePen. We will see how we can use the canvas component and JavaScript to draw: a line; an arc (a part of a circle) a color-filled shape; To start drawing using the HTML5 canvas, we'll need to create a few things: One folder to hold the project files; let's call this folder piechart-tutorial. Canvas allows you to render graphics powered by Javascript. Another example: animating elements on the canvas. Based on the example above, we animate the elements using a loop. What is Canvas? Canvas is one of the most sought after feature in HTML5.