Remove optional onEnd callback and fires 'endanimation' event.