Guides / Websites

One prompt, an exploding product site from Claude Code: scroll and a camera splits into 14 parts, then rebuilds

A fictional camera site: scroll and the camera turns, explodes into 14 labelled parts and reassembles. Built in three.js by Claude Code. Full prompt.

Watch the reel on InstagramComment #拆解 to get this guide

This exploded view of a camera is not a picture. It is a website. Scroll down and the camera turns, then bursts out from the centre into 14 parts, each with a leader line, a name and a spec. Keep scrolling and it puts itself back together.
MUGUANG and the M35 camera are fictional. We gave Claude Code one prompt and changed nothing in the site, and every image below is a real screenshot of it. You get the prompt (swap the [ ] parts), the idea behind the exploded view, and how to turn it into your own product.

01The result first: scroll, and a camera comes apart and back together

Mustard home page: an ink-black rounded info card reading M35 on the left, a 3D film camera on the right
Home: mustard background, the camera turning slowly on the right, a card with the name, tagline and three specs.
  1. Home: the camera turns slowly beside an ink-black rounded info card.
  2. CREATE: the camera turns and zooms until the lens faces you, with a giant "CREATE" behind it.
  3. INSIDE: the parts fly out from the centre into an exploded view. Each of the 14 parts gets a line, a Chinese name and one line of specs.
  4. TOGETHER: the parts fly home and become one camera again.
  5. Ending: the page turns ink black, with a huge brand wordmark, a tagline and a small "fictional brand" note.

The whole site is 4 files: index.html, style.css, camera.js (the camera and the explode motion) and main.js (loader, scrolling, camera positions, labels and leader lines). On a 1440×880 screen the page is about 6,200 px tall. A small EXPLODE gauge in the bottom-right corner runs from 0.00 to 1.00 as you scroll.

02Step 1: paste this prompt into Claude Code

We used Claude Code because it creates the files on your computer, then opens a browser, takes screenshots and checks its own work. This run took about 21 minutes. It took its own screenshots and made its own fixes, and we gave no extra design instructions.

  1. Open Claude Code (terminal or desktop app).
  2. Make an empty folder and start Claude Code inside it.
  3. Paste the whole prompt below (swap the [ ] parts) and press Enter.
  4. When it finishes, run npx http-server in the folder, open the address it prints, and scroll.
Exploded-view product site prompt (replace the [ ] parts)
Build a [camera] product website with three.js. As I scroll down, the [camera] "explodes" into parts and then reassembles.
The brand is "[MUGUANG Optical]" (fictional, [Taipei]) and the product is the [M35 film camera].

1. Build the whole [camera] from three.js geometry: [body, top plate, lens barrel, front element, lens group, aperture blades, shutter, viewfinder, advance lever, shutter button, film roll, back cover]… at least 12 parts, each one a separate, named mesh. No external models or images, and no real brand names or logos on the body.
2. Opening: a white loading screen where huge letters slide in, then the whole page turns [mustard yellow], the [camera] turns slowly on the right and an [ink-black] rounded info card sits on the left (product name, one tagline, three specs).
3. Drive the scroll with one explode value (0→1). Every part moves along its own direction "outward from the centre":
   Part one, the [camera] turns and zooms in on the [lens], with a giant "[CREATE]" in the background;
   Part two, all parts fly out into an exploded view with a giant "[INSIDE]" behind them, and each part gets a thin line, a name and one line of specs;
   Part three, the parts fly back into place, with a giant "[TOGETHER]" in the background.
4. Last section: a huge brand wordmark, one tagline and a small "fictional brand" note.
5. It should feel like an award-winning site: big type, rounded cards, small monospace text, thin lines. Use only [mustard yellow, ink black and cream].

03Step 2: the exploded view runs on a single number

The most important line in the prompt is in point 3: "Drive the scroll with one explode value (0→1). Every part moves outward from the centre." 0 is the assembled camera and 1 is fully apart. The number moves exactly as far as you scroll, so scrolling back up puts the camera back together too.

CREATE section: the camera faces front with the lens enlarged, EXPLODE gauge at 0.00
Part one, CREATE: the camera turns to show its lens. The gauge is still at 0.00 and no part has moved.
Camera half exploded: lens parts forward, top plate and knobs up, film roll to the right, gauge at 0.51
Halfway (0.51): the lens moves forward, the top plate up, the film roll right, and INSIDE is half in.

The core Claude wrote is short. Each part remembers three things: where it lives (home), which way and how far it flies (ex), and how long it waits before leaving (delay). This is the piece of camera.js that actually runs:

The explode code Claude wrote (excerpt, no need to type it)
// explode ∈ [0,1]; every part travels along its own outward direction (userData.ex)
function setExplode(e) {
  for (const p of parts) {
    const u = p.userData;
    const k = ease(Math.min(1, Math.max(0, e * 1.35 - u.delay * 0.35)));
    p.position.set(u.home.x + u.ex.x * k, u.home.y + u.ex.y * k, u.home.z + u.ex.z * k);
    if (u.twist) p.rotation.z = u.twist * k;
  }
}
  1. Wider or tighter explosion: tell Claude "multiply every part's explode distance by 1.3" or "by 0.8".
  2. Different order: say "the lens parts leave first and the body moves last", and it adjusts each part's delay.
  3. Hold the exploded view longer: say "after explode reaches 1, keep it for one more screen of scrolling before reassembling".

04Step 3: 14 parts, each with a name and a label

Full exploded view: the camera in 14 parts, two columns of numbered labels, a giant INSIDE behind, gauge at 1.00
Gauge at 1.00: all 14 parts are out, 7 labels on each side, every line pointing at its own part.

Point 1 of the prompt says "no external models or images", so there is no 3D model file. The camera is put together in code from basic three.js shapes. We asked for "at least 12 parts" and Claude made 14:

  1. Shell: body, top plate, base plate, back cover.
  2. Lens: barrel, lens group, front element, aperture blades (8 of them), shutter.
  3. Small parts on top: viewfinder, advance lever, shutter button, rewind knob.
  4. Inside: a roll of film, with a short strip of perforated leader pulled out.
Close-up of the 7 left labels: advance lever, body, shutter, aperture blades, lens group, barrel, front element
Left column, 01 to 07: the name in large type, a monospace spec line below, such as "8 blades · f/2 – f/16".
Close-up of the 7 right labels: shutter button, viewfinder, rewind knob, top plate, back cover, film roll, base plate
Right column, 08 to 14: each line runs flat first, then angles in to a small dot on the part.

The labels are not painted onto an image. On every frame the code works out where each part sits on screen and connects the line to it, so the lines follow the parts wherever they fly. The specs (six elements in four groups, stamped brass, ISO 400 and so on) were made up by Claude. They read as real, but all of it is demo data.

05Step 4: let it take its own screenshots and fix its own mistakes

A first version of a 3D scroll site almost always has something off. What matters is who finds it. Paste this after the prompt and Claude Code will take screenshots, look at them and fix what it sees:

Checking request (paste it after the prompt)
When you finish, check your own work:
- Open the site in headless Chrome (puppeteer), desktop [1440×880].
- Screenshot the loader, the home view, explode at 0.25, 0.5, 0.8 and 1, halfway through reassembly, and the ending.
- Look at each one: does any part leave the frame? Do leader lines cross the body or each other? Do labels overlap other text? Is the big word hidden behind the camera?
- Fix what is wrong, screenshot again, then tell me what you changed.

On this run it looked at its own screenshots and fixed all of these: the leader lines did not draw at all at first (their positions came out as not-a-number), the front element and shutter button left the frame mid-explosion, lines crossed the body, the tip of the advance lever came off its base, the viewfinder window was blown out to white, CREATE and TOGETHER were hidden behind the camera, the last G of MUGUANG was clipped, and the bottom labels ran into the caption pill in the bottom-left corner.

Reassembly in progress: lens parts flying back to the body, TOGETHER half visible, gauge at 0.41
Keep scrolling and the gauge runs back to 0.41: the lens returns piece by piece as TOGETHER slides in.
TOGETHER section: the camera fully assembled, gauge back at 0.00
Gauge back at 0.00: one complete camera, with "put it back together" in the bottom-left pill.

06Step 5: make it your own product

Ending page: ink-black background, giant mustard MUGUANG wordmark, a fictional-brand note bottom right
Ending: a giant wordmark, one tagline, and an honest "FICTIONAL BRAND" pill in the bottom-right corner.
  1. Product and parts: replace "M35 film camera" and the parts list. A mechanical keyboard (keycaps, switches, plate, circuit board, case), headphones, a watch, a desk lamp or a coffee machine all work well.
  2. Brand and copy: change the brand name, city, tagline and three specs right in the prompt.
  3. The three big words: swap CREATE / INSIDE / TOGETHER for your own. English words of a similar length keep the layout steady.
  4. Colour: still give only three. One main colour, one dark, one light.
  5. Going live: upload the whole folder to any static host, such as GitHub Pages.
To change the product after it is built, say this (replace the [ ] parts)
Keep the current layout, scrolling and the explode approach, and change the product to a [mechanical keyboard].
Parts: [keycaps, switches, plate, circuit board, foam, case, knob, USB-C port], each one still a separate, named mesh.
Label every part with its name and one line of specs. I will give you the real specs later, so leave [ ] for now.
Take screenshots and check it yourself when you finish.

07Good to know

  1. MUGUANG is a fictional brand and the M35 camera does not exist. The specs (35mm f/2, 1/500 s, 480 g), the part labels and "hand-assembled in Taipei" are demo data made up by Claude.
  2. The camera is a stylised model built from basic shapes, not a diagram of a real camera. Don't use the part positions as a repair or teardown reference.
  3. For a real product, put your own real specs on the labels. Specs written by AI look convincing, and on a product page they would be false claims.
  4. Keep the line "no real brand names or logos" in the prompt. If the product belongs to someone else, don't copy its shape or trademarks either.
  5. Claude Code needs a paid Claude plan (such as Pro or Max) or an API account.
  6. The site uses ES modules, so double-clicking index.html shows a blank page. Open it through a local server (npx http-server) or upload it to a host.
  7. We built and checked the desktop version only (1440×880). Ask Claude for a mobile layout before going live. 3D sites are also heavier than normal pages, so older phones may be slow.
  8. For this run we put three.js r160 and the font files in the folder first and asked it to use the local files. The two Chinese font files (Noto Sans TC Bold and Black) total about 35 MB, so ask Claude to subset them or convert them to WOFF2 before going live.
  9. Noto Sans TC, Inter, JetBrains Mono and Instrument Serif are under the SIL Open Font License, and three.js is MIT licensed. All can be used commercially.
  10. In the reel, the laptop and desk are an AI-generated image. The website on the screen is what Claude Code really built, and the screenshots in this article are the site itself.
  11. We made this in November 2026. The same prompt never produces exactly the same number of parts, shapes or layout twice.

Sources

Related guides