updating the leave animation