Build log

3D+1,770 −16

Creative exploration

The professional site stays intact. A second skin shows range: holographic, playful, hand-built.

Hover to tilt · click to turn

components/fun/HoloCards.tsx
// A DOM enhancer, not a wrapper: images live in many different containers// (next/image fills, lightbox buttons, screen-flow buttons, plain clipped divs).// Find each image's visual card, tag it, write transform directly. React never// sets style on these nodes, so the two don't fight. Undone on unmount.const SEL = "main img, main video" function scan() { const main = document.querySelector("main") const seen = new Set<HTMLElement>() main.querySelectorAll<HTMLElement>(SEL).forEach(media => { const card = findCard(media, main) // nearest clipping ancestor if (card) seen.add(card) }) seen.forEach(attach) for (const [el, c] of cards) if (!seen.has(el) || !el.isConnected) { c.off(); cards.delete(el) }} // Gesture model: TURN owns the card (left-drag, momentum, settles to a face).// MOVE is secondary: grip bar, press-and-hold ~0.4s, or shift / right drag.// CLICK collects. No hint; the tray appears after the first collect.
Asked
Give the site a second skin: holographic, three-dimensional, a little game-like, without changing a word of content or adding a WebGL scene. Every image should become a card you can turn and move. Make discovering it part of the fun.
Came back
The first pass wrapped each image in a new card component, which meant touching every container on the site and keeping two trees in sync. I asked for a DOM enhancer instead: on entering the mode it finds each image's visual card, tags it, and writes transforms directly; React never styles those nodes, so the two never fight, and everything is undone on exit. The gesture model was the other call. Turn is the primary action and owns the whole card, the 3D-viewer convention; move is secondary and never competes for the same gesture (a grip bar, press-and-hold, or shift-drag); a click collects. Nothing announces the game. The tray only appears after the first collect.
Kept
One switch reboots the site into a dark holographic world: a canvas starfield, every image a card with a wireframe back face carrying its caption, momentum on the turn, a collection tray, and levels that recolour the sky. Plain canvas and CSS 3D. Zero new dependencies.