Example of a bouncing ball using canvas tag with animation frames