Ensure 'transitionend' callback runs once in case of multiple transitions