Adding timeout event to ensure animation wrap-up when transitionEnd event failed to fire.