A little helper for knowing reliably when CSS transitions have finished.