Overlay Menu
- group .........
- Menus and navigation
- source ........
- https://ui.aryank.space/components/overlay-menu
- markdown ......
- /lab/overlay-menu.md
- human .........
- /lab/overlay-menu
── WHAT_IT_IS ────────────────────────────────────────────────────────────────────────────────
A layered, curtain-style fullscreen navigation. A hamburger sweeps four colored panels down in sequence, clip-reveals a dark menu surface, and slides each link group up line-by-line. Built with a GSAP timeline and SplitText; wraps your page as a layout.
── BEHAVIOUR ────────────────────────────────────────────────────────────────────────────────
* Layered reveal
Four curtain panels scaleY in sequence, then the dark surface clip-reveals beneath them. The overlap (a negative timeline offset) is what makes it read as depth rather than a single wipe.
* Masked line slide
Each link is split into masked lines that slide up from behind their own clip. The slide is deliberately delayed until the curtains have mostly landed.
* Wraps your page
The component is a layout: it renders the bar and overlay over whatever you pass as children, so it composes with an existing hero instead of replacing it.