Model Menu 3D
- group .........
- Menus and navigation
- source ........
- https://ui.aryank.space/components/model-menu-3d
- markdown ......
- /lab/model-menu-3d.md
- human .........
- /lab/model-menu-3d
── WHAT_IT_IS ────────────────────────────────────────────────────────────────────────────────
A fullscreen menu overlay built around a lit 3D model: a toggle fades the panel in, a GLB object behind the links reacts to the cursor with eased parallax rotation and a pointer-tracked point light, and each menu label fills with a left-to-right gradient wipe on hover.
── BEHAVIOUR ────────────────────────────────────────────────────────────────────────────────
* Auto-framed model
The GLB is measured with a bounding box on load, then centered and pushed back by a multiple of its largest dimension, so any model you drop in is framed the same way without hand-tuning the camera.
* Cursor light and tilt
The pointer drives both an eased parallax rotation of the model and a point light that trails the cursor in the scene, so the object catches light as it turns toward you.