improved transitionend fallback