Block Logo Transition Page
- group .........
- Pages
- recording .....
- https://s4xw77gvirailb62.public.blob.vercel-storage.com/lab/block-logo-transition-page.mp4
- source ........
- https://ui.aryank.space/pages/block-logo-transition-page
- markdown ......
- /lab/block-logo-transition-page.md
- human .........
- /lab/block-logo-transition-page
── WHAT_IT_IS ────────────────────────────────────────────────────────────────────────────────
A three route site whose transitions are built from twenty vertical blocks. Leaving a page, the blocks scale out from their left edge on a two hundredth of a second stagger, sweeping the screen shut; arriving, they collapse from the right, so the wipe never reverses direction. While the screen is covered, a mark draws itself: its path length is measured at runtime and used as the dash offset, so the stroke traces on before the fill arrives.
── BEHAVIOUR ────────────────────────────────────────────────────────────────────────────────
* The wipe never reverses
Blocks close from their left origin and open from their right, so the sweep continues in one direction across the whole transition instead of retracing its own path.
* The mark measures itself
getTotalLength on the path supplies both the dash array and the starting offset, so any replacement logo traces correctly with no hand-tuned numbers.
* Navigation waits for the cover
The route only changes in the timeline's onComplete, after the blocks have fully closed, so the incoming page is never visible while the cover is still animating.