Animation working correctly