animation works in the console