Every photo has a twin with the exact same framing: the day hero and its night version, the pendant off and on, fifteen lamps on grey and the same fifteen glowing on charcoal. The site only fades one layer over the other, so nothing jumps when the lights change. A black panel lifts off the typed loader, the lamp pans in from the left, and each section slides up over the last one with a slow, eased handover.
Nothing to attach. The prompt loads all 34 images straight from thinkingods.com, so just paste it, save what your AI gives back as
index.html and open it in Chrome. See the live build ↗ first. Want everything offline? Download the project: the finished index.html, every image in an assets/ folder and a README.The prompt
Paste this into Claude (or any AI that writes code), save the file it gives you as index.html and open it. Nothing to install, no server.
Build a single self-contained index.html for a fictional Kyoto lighting studio called KOTO. All CSS and JS inline, no framework, no build step. Four moments: a typed loader, a day/night hero, a pendant lamp a hand switches on, and a 15-lamp collection that lights up tile by tile.
FILES (hosted, load each from https://thinkingods.com/demos/koto-lamps/assets/<name>; nothing to attach)
- hero-day.jpg, hero-night.jpg — same framing (1456×813): sage ceramic table lamp with a pleated paper shade on a plaster plinth; day has window-shadow sunlight, night is dark with the shade glowing.
- pendant-off.jpg, pendant-on.jpg — same framing (1456×813): a hand touching the underside of a cobalt enamel cone pendant; off is dark, on has the bulb glowing.
- lamp-01-day.jpg … lamp-15-day.jpg and lamp-01-night.jpg … lamp-15-night.jpg — 15 product tiles, day on light grey, night glowing on charcoal.
STACK
- Vanilla HTML/CSS/JS. Google Fonts: Instrument Serif (400, 400 italic) for display, Inter Tight (400/500/600) for UI. Fallbacks: Georgia, serif / system-ui, sans-serif.
TOKENS
--paper #f3f1ec · --ink #161514 · --night #0b0b0c · --mist #9a958c · --glow #ffd9a0 · --pad clamp(18px,3.4vw,48px) · loader bg #070707 · night text #f1ebe0 · night muted #8f887d · day muted #6d675e.
DATA (verbatim)
- Nav left: Shop · Collections · Journal. Centre logo: KOTO (Instrument Serif 30px, letter-spacing .14em). Right: EN, search, account, bag icons (1.5px stroked SVGs), bag count 0.
- Loader: KOTO, footer "Kyoto · Lighting studio" left and a 3-digit percent counter right.
- Hero: eyebrow "Hand-pleated lighting", H1 "Light, <em>kept quiet.</em>", pill "Explore". Toggle label "Day" / "Night". Foot: "Hana · table lamp · sage glaze" left, "Scroll" right.
- Pendant: small "Aoi pendant · cobalt enamel", H2 "Reach up.<br>It answers.", body "A frosted glass diffuser under a hand-sprayed enamel shade, so the light lands on the table and never in your eyes.", pill "Shop pendants". Bottom-left button "Tap the lamp".
- Collection: H2 "The collection", sub "Fifteen pieces, made to be left on", toggle "Lights off" / "Lights on". Tile names in order: Bo cylinder, Kin cone, Tsuki lantern, Koke mushroom, Aoi dome, Sora floor, Beni globe, Kane bell, Washi column, Shiro disc, Tsuchi vessel, Kemuri sphere, Ude task, Kiiro bowl, Ishi pebble.
LAYOUT
- Fixed nav, 64px tall, 3-column grid (links | logo | icons). Its background is #f3f1ec over light sections and #0b0b0c over dark ones (interpolate RGB with the current theme value).
- Three full-screen sections stacked in a fixed viewport (no native scroll). Every photo sits in a "stage": position absolute, centred, width max(100vw, 100vh*1.791), aspect-ratio 1456/813, so day and night layers line up pixel for pixel. Both images stacked; the night/on image fades in with opacity.
- Hero copy centred at top 20vh. H1 clamp(44px,6.2vw,92px), line-height 1. Toggle top-right (top 92px): a 52×28 pill switch with a 20px white knob that slides 24px.
- Pendant copy bottom-right (right var(--pad), bottom 12vh, width min(380px,80vw)). H2 clamp(34px,3.6vw,52px).
- Collection: padding 96px var(--pad) 32px, header row (title left, toggle right), then a 5×3 grid filling the rest of the screen, gap 10px, tiles radius 6px, each tile stacks day + night images (object-fit cover). Tile name appears bottom-left on hover.
INTERACTIONS AND TIMINGS (constants)
- LOADER: letters K-O-T-O fade/rise in (from translateY .25em) over 0.25s–2.05s, each letter taking 18% of that span, starting 20% apart. A 2px underline bar fills 0→100% with easeInOutCubic over the same span; the counter shows the percent. At 2.2s–3.15s the whole black loader panel slides up out of view (translateY 0 → -100%, easeOutExpo) while the word lifts 18vh and fades in the first half.
- HERO ENTRANCE: 2.5s–3.85s the hero stage pans in from the left: translateX -34vw → 0 and scale 1.35 → 1 (easeOutQuart), so the lamp glides left-to-right and settles. From 3.05s–4.05s the eyebrow, H1 and pill fade up 22px one after another (16% stagger, easeOutQuart); the toggle fades in last.
- HERO TOGGLE: click switches day↔night over 1.25s (easeInOutSine): night image opacity, text colour (#1d1c1a ↔ #f1ebe0), pill inverts, nav goes dark, label Day↔Night.
- SECTIONS: wheel, arrow/PageDown keys, a 50px swipe or a nav link move one section at a time over 1.2s with easeInOutQuint. The incoming section slides up from translateY 100% → 0 over the outgoing one, which drifts up to -30% and dims to 55% black, so the handover reads as one eased move. Ignore further wheel input for 1.25s.
- PENDANT: 0.9s after arriving on the section, or the lamp/hint is clicked, run a 0.9s switch-on flicker on the "on" layer's opacity: 0→0.9 by 12%, drop to 0.15 at 12–20%, 0.95 at 20–30%, 0.55 at 30–36%, then ease 0.85→1. A screen-blend radial bloom (rgba(255,214,150,.55) at the bulb, 50% / 47.5% of the stage) uses the same value. The copy fades up 18px from 0.5s to 1.2s after the switch. Clicking again switches it off over 0.4s.
- COLLECTION ENTRANCE: 0.6s after arriving, tiles rise in column by column over 1.2s: each tile translateY 55% → 0 and opacity 0 → 1 (easeOutQuart), delay = column×11% + row×6% of the run.
- COLLECTION TOGGLE: click runs 1.1s with easeInOutSine on the background. Background and text interpolate paper→night. Tiles switch on in this order: 1,7,13,4,10,2,8,14,5,11,3,9,15,6,12; each starts at k/15×70% of the run and takes 30%, with a short flicker (dip to 0.2 at 12–20% of its own span). The toggle knob slides in the first third.
- Drive everything from one requestAnimationFrame loop reading time; no CSS transitions on the animated values.
FALLBACKS
- If an image fails, the stage keeps its background colour (#050607 for the pendant, #e4e2dc for tiles) so text stays readable.
RESPONSIVE
- Under 760px: hide nav links, logo left; collection grid becomes 3 columns of square tiles and the section scrolls inside itself; pendant copy sits at bottom 8vh.
ACCESSIBILITY
- Toggles are buttons with aria-pressed and aria-labels ("Switch the lamp on", "Turn the collection on"). Images have alt text (decorative night layers alt=""). Visible focus ring 2px #ffd9a0. prefers-reduced-motion: no transitions, states switch instantly.
DONE WHEN
- The loader types KOTO, then hands over to the day hero; the toggle swaps day/night with no shift in the lamp's position; scrolling to the pendant switches it on with a flicker; the collection toggle lights the tiles in a scattered order; it all works by double-clicking index.html.Make it yours
| Swap | How |
|---|---|
| Your own products | Generate any 5×3 set of products on one grey background, then relight the same image to night in Google Flow so every tile keeps its position. Keep the file names. |
| Your own brand | Change KOTO, the nav and every line in DATA before you paste. Keep the loader word to 3–6 letters so the typing reads. |
| Your own pacing | Change the section move (1.2s, easeInOutQuint), the day/night fade (1.25s) or the tile cascade delays in INTERACTIONS AND TIMINGS. |


