- Developer callsÂ
document.startViewTransition(updateCallback).
- Current state captured as the âoldâ state.
- Rendering paused.
- DeveloperâsÂ
updateCallback function is called, which updates the document state.
viewTransition.updateCallbackDone promise fulfils.
- Current state captured as the ânewâ state.
- Transition pseudo-elements created.
- Rendering unpaused, revealing the transition pseudo-elements.
viewTransition.ready promise fulfils.
- Pseudo-elements animate until finished.
- Transition pseudo-elements removed.
viewTransition.finished promise fulfils.