Revealer Transition Page
- group .........
- Pages
- recording .....
- https://s4xw77gvirailb62.public.blob.vercel-storage.com/lab/revealer-transition-page.mp4
- source ........
- https://ui.aryank.space/pages/revealer-transition-page
- markdown ......
- /lab/revealer-transition-page.md
- human .........
- /lab/revealer-transition-page
── WHAT_IT_IS ────────────────────────────────────────────────────────────────────────────────
A four route studio site with two layers of transition. On arrival a solid panel scaled to full height shrinks away from its top edge, wiping the page in. On navigation the View Transition API animates the incoming snapshot from a small centered rectangle out to the full frame, so the new page grows through a window in the old one rather than sliding over it. Each route then splits and staggers its own copy, by character on the home hero and by word elsewhere.
── BEHAVIOUR ────────────────────────────────────────────────────────────────────────────────
* Two transitions stacked
A GSAP revealer wipes each page in on arrival, while the View Transition API separately grows the incoming snapshot from a small centered rectangle. One handles the page's own entrance, the other the crossing between pages.
* The default transition is cancelled
Both pseudo-elements are set to animation: none, so the only motion is the explicit clip-path keyframe run on the documentElement. Without that override the browser's own crossfade would fight it.
* Split type follows the route
The home hero splits by character and every other route by word, matching the source's per-page choice, with different delays so the copy always lands after the revealer has cleared.