Sunlit
- group .........
- Cursor and hover effects
- source ........
- https://ui.aryank.space/components/sunlit
- markdown ......
- /lab/sunlit.md
- human .........
- /lab/sunlit
── WHAT_IT_IS ────────────────────────────────────────────────────────────────────────────────
Pure CSS dappled light through window blinds and a billowing leaf canopy: progressive blur for depth, a warm floor bounce glow, a derived matrix3d light plane, and a clickable day/night switch that walks through hand-picked sunrise and sunset colors instead of a hard cut. No dependencies.
── BEHAVIOUR ────────────────────────────────────────────────────────────────────────────────
* Light is geometry, not a photo
Horizontal shutters and vertical bars sit on a derived matrix3d plane so the dappled pattern reads as a window wall. Day and night swap shutter gap, shutter height, plane opacity, and the homography itself over a shared easing curve.
* Progressive blur sells depth
Four stacked backdrop-filter layers, each masked with a linear gradient, keep the near wall sharp while the far canopy softens. Without the stack the leaves either look pasted on or dissolve into mush.
* Sunrise instead of a hard cut
Toggling night runs a short color keyframe through dawn, morning, evening, and dusk, with a floor bounce glow that swaps from warm amber to cool blue. The leaf canopy keeps billowing under an SVG turbulence displacement filter.