- In the old document:
- The user initiates a navigation.
- When the new page is ready theÂ
pageswap event is fired.
- You can now customise the transition, e.g. by mutating its
types, or skip it altogether.
- Current state captured as the âoldâ state.
- Rendering paused.
- The navigation proceeds.
- Then, in the new document:
- The
pagereveal event is fired.
- This is another opportunity for you to customise the transition.
- Current state captured as the ânewâ state.
- Transition pseudo-elements created.
- Rendering unpaused, revealing the transition pseudo-elements.
viewTransition.ready fulfils.
- Pseudo-elements animate until finished.
- Transition pseudo-elements removed.
viewTransition.finished fulfils.