added an event as animation end.