Fire a callback after a transition or fire immediately if the browser doesn't support them