Updated to allow for cross-browser transitions.