Pan Video Canvas
- group .........
- Galleries and grids
- source ........
- https://ui.aryank.space/components/pan-video-canvas
- markdown ......
- /lab/pan-video-canvas.md
- human .........
- /lab/pan-video-canvas
── WHAT_IT_IS ────────────────────────────────────────────────────────────────────────────────
A canvas twice the size of its frame in both directions, panned by the inverse of the pointer position so moving right pulls the board left and you steer around a space larger than the window. The motion is a plain CSS transition at two seconds on a heavy ease-out curve rather than a per-frame lerp, so the board keeps gliding long after the cursor stops and arrives without any physics. Each tile holds a still and a Vimeo embed scaled two hundred percent behind it; hovering crossfades the still out, the video in, and the title up, all on separate durations so the three do not arrive together.
── BEHAVIOUR ────────────────────────────────────────────────────────────────────────────────
* The pan is inverted
Offset is centre minus pointer, so moving right pulls the board left. It reads as steering a larger space rather than dragging a surface.
* A CSS transition, not a lerp
Two seconds on a heavy ease-out means the board keeps gliding well after the cursor stops, with no rAF loop and no physics to tune.
* Three hover changes, three durations
Still out at 300ms, video in at 300ms, title up at 150ms. Matching them would make the tile switch state; staggered, it feels like it wakes up.