Use canvas to draw animation.