use canvas to implement the time animation