take custom animation end event option and trigger animation start event on closing