Site · 3D & WebGL

Eight Hours After Dusk WebGL photo exhibition on a rising spiral

A photography exhibition hung as real framed objects on a spiral stair in a foggy hall. Click a frame and the camera flies to it.

Open live demo ↗ Download .md
eighthoursafterdusk.demo
Eight Hours After Dusk at desktop width
Desktop · 1440
Eight Hours After Dusk at phone width
Phone · 390

What's in the prompt

  • A full written spec: layout, tokens, every animation with its numbers, responsive rules
  • The complete working code as the reference implementation
  • Accessibility, reduced motion and fallbacks already handled
  • A “Make it yours” checklist so your site looks like nobody else’s
Type
Site
Built with
HTML, CSS, JS · three.js 0.160.0
Prompt size
89 KB
Tags
three.js, webgl gallery, 3d carousel, portfolio
Updated
2026-11-26

Use it in three steps

  1. Copy the prompt with the button above.
  2. Paste it into your AI (Claude, Claude Code, ChatGPT, Cursor…) and add your edits.
  3. Launch the single index.html anywhere: Cloudflare Pages, Netlify, GitHub Pages.

About the Eight Hours After Dusk design

Eight Hours After Dusk is an online exhibition for a fictional photography festival, built as a climb up a spiral staircase in a concrete stairwell. Each of eight night photographs hangs as a framed object, one per hour from 19:40 to 02:50, so going up the stair moves you through the night. The palette is near-black blue with a sodium-lamp amber for the handrail, focus rings and current hour, and a pale cyan for works you save. Instrument Serif italics give titles a gallery-label feel, with Geist and Geist Mono for captions and data.

After a short loader, the camera rises from a rippling reflection pool to the first level. Scrolling, dragging or pressing the arrow keys climbs the helix and snaps to each print; the focused work is sharp while the others blur and sink into fog. An hour rail on the right and a small spiral minimap show where you are. Clicking a print flies the camera to it and opens a panel with the title, artist, medium, size and notes, with earlier and later links and an Add to my route button. An Index view lists every work as a plain grid, which is also the fallback without WebGL.

Good for

How Eight Hours After Dusk is built

Advanced three.js 0.160 via import map (Reflector, RoundedBoxGeometry) + local WebP photos, no build step

Images, video and 3D

Eight 900×1200 night photographs (under 120 KB each) and one hall-360.webp equirectangular render of a concrete stairwell. Use your own photo series or generate one with an AI image tool in a single consistent look, and render a new 360° room in Blender (equirect camera, low samples plus denoise) to change the mood.

Build it with Claude

Ask Claude for the complete index.html; the preview will not have your local photos or the 360° plate, so expect empty frames or the list fallback there. Check the parts that do not need assets: the hour rail, keyboard stepping that queues against the target level, the detail panel focus trap and the My route counter.

Claude guide →

Build it with Claude Code

Put the eight h*.webp photos and hall-360.webp in assets/, ask Claude Code to build index.html, and serve the folder with python3 -m http.server so textures load without CORS errors. Ask it to confirm in a headless run that the handrail passes below the prints, that the index view pauses rendering, and that blocking WebGL2 switches to the flat list within 9 s.

Claude Code guide →

Build it with ChatGPT

Ask ChatGPT to split the output into the classic app-shell script and the 3D module, written in separate replies or in canvas, since the prompt defines a window.App contract between them. Follow up on the reflection: check that it really uses Reflector with the ripple shader and that the print shader skips tone mapping so the photos keep their colour.

ChatGPT guide →

If it doesn’t work

Questions about Eight Hours After Dusk

Does Eight Hours After Dusk use any 3D model files?

No. The frames, stair treads, handrail and water are all built in three.js code. The only images are the eight photos and one 360° render of the stairwell.

Can I use more than eight photos on the stair?

The prompt suggests keeping 6 to 10 works so the helix stays readable. More levels means a taller climb; you add list items in the DOM and the helix, rail and minimap are built from that list.

Make it yours

This prompt rebuilds one exact design. If everyone ships it unchanged, the sites will look alike. Before you paste it, change these lines so the result is yours. Each change is one edit to the prompt; the structure and the interactions stay intact.

  1. Exhibition and premise. Replace the Blue Hour Biennale and "one photograph per hour of the night" with your own show and an ordering idea that suits a climb. Examples: twelve months of a year, the floors of a building, a river from source to sea, chapters of a book, a career from first job to last. Keep 6–10 works so the helix stays legible, and keep a short ordered label per level in place of the hour (month, floor, km, chapter).
  2. The stair itself. The rising helix is the signature. Re-theme it without changing the travel maths. Some options: - A library spiral: oak treads, a brass rail and STEP 0.7 for a tighter turn. - A lighthouse interior: whitewashed treads, a red rail and a cyan lamp strip. - A gallery ramp, Guggenheim-style: RISE 0.6, STEP 0.5, a continuous tube in place of treads. - A mine shaft: rusted grating and a yellow rail.

Change the rail colour, tread colour and the STEP/RISE pair together.

  1. The room. Render your own 360° plate in Blender Cycles (equirect, about 2048×1024, low samples plus denoise) that matches the new theme: library stacks, a tiled lighthouse shaft, a white museum rotunda, a brick mill. The same file lights the frames and fills the reflection, so a warmer or brighter room changes the whole mood.
  2. Frames. Swap the black anodised moulding and white mat to fit your work. Options: natural oak with no mat for prints, gilded moulding for paintings, a borderless float mount with a 2 cm shadow gap for contemporary photos, or a lightbox (emissive print, no glass) for transparencies.
  3. Palette. Replace --amber, the fog colour and --ink with your brand's lamp colour and night colour. Keep --muted at 4.5:1 or better on --ink, and keep the accent readable as text on the panel.
  4. Type pairing. Swap Instrument Serif + Geist + Geist Mono for another display serif and grotesk with a monospace for labels. For example: Fraunces + Inter Tight + IBM Plex Mono, or Cormorant + Manrope + JetBrains Mono.
  5. The works. Replace the eight images and their data-* fields with your own collection. If you generate them, shoot the series in one language: one lens, one grade, the same grain, real places and objects, nothing symmetrical or glossy. Write alt text that says what is in the frame.
  6. Copy voice. Rewrite the lede, the work notes and the empty state in your curator's voice. Be specific about who, where and why ("eleven minutes before someone switched them off"), not generic ("a stunning exploration of light").

Tell your AI: "Build exactly as specified, but with these changes: …", then list your edits.

More designs