Expanding Navbar Reveal
- group .........
- Menus and navigation
- recording .....
- https://s4xw77gvirailb62.public.blob.vercel-storage.com/lab/expanding-navbar-reveal.mp4
- source ........
- https://ui.aryank.space/components/expanding-navbar-reveal
- markdown ......
- /lab/expanding-navbar-reveal.md
- human .........
- /lab/expanding-navbar-reveal
── WHAT_IT_IS ────────────────────────────────────────────────────────────────────────────────
A fixed 16:9 navbar card centered over a full-bleed image; scrolling the first viewport expands the card's background and link row to fill the screen while the logo FLIPs from the card's bottom center up to a pinned top bar, uncovering the hero beneath.
── BEHAVIOUR ────────────────────────────────────────────────────────────────────────────────
* FLIP logo handoff
The logo's before and after layout is captured with GSAP Flip, then driven by scroll progress, so it travels smoothly from the card's bottom center to the pinned top bar without a layout jump.
* Scoped when embedded
In embedded mode the root gets a transform so its position:fixed navbar is contained to the bounded stage instead of the whole viewport; drop embedded for a true full-page fixed navbar.