Trying to add animation to canvas