Add animation end listener.