Better fallback for the transition-end event