One prompt, a 3D chrome chain website: Claude Code builds it in 8 steps you can see one by one
A chrome chain runs through the whole site and slides as you scroll. 8 steps: one ring, 80 copies, a curve, a 90° twist, an env map. Prompt + screenshots.
Watch the reel on InstagramComment #鎖鏈 to get this guide
This chain isn't a video or a 3D model file. It's built in code with three.js inside the web page: 80 links locked together, running from the first section to the last. When you scroll, it slides through the page as if someone were pulling it.
We gave a brand-new Claude Code session one prompt and didn't change a single character of the site it made. The studio, LINKO, is fictional, and every image below is a real screenshot of that site. You get the full prompt (replace the [ ] parts) and the chain's 8 steps, each with a picture of what the chain looks like at that step.
01The result: one chain through 6 sections

- White opening: a spiky chrome star spins, then bursts into a ring of red and black cubes, above a giant black LINKO wordmark.
- Grey section: a big slogan ("every pixel should have weight") with three small picture cards.
- Black section: a services list (art direction, web design, 3D and motion, development), one small card each.
- Red section: a featured project, FORGE, an ironworks shop (also fictional).
- Cyan-lit section: the chain lit in cyan, with three small project cards.
- Last section: red background, huge cyan type, the badge.
The whole site is 3 files: index.html, style.css and main.js. On a 1440×880 screen the page is about 6,271 px tall. There are no images and no 3D model files: the star, the cubes, the pictures in the cards and the badge were all made with three.js and CSS in the same run.
02Paste this prompt first
- Open Claude Code (terminal or desktop app) in an empty folder.
- Paste the whole prompt below (replace the [ ] parts) and press Enter.
- When it's done, run npx http-server in the folder, open the address it gives you and scroll.
- To see one step, add ?step=1 to ?step=8 to the address.
Build a website for a design studio with three.js. One 3D chrome chain runs through the whole site from top to bottom; when you scroll, the chain slides through every section as if someone were pulling it. The studio is called "[LINKO]" (fictional, [Taipei]). Site copy in [English]; the wordmark in Latin letters: [LINKO]. Build the chain in these 8 steps: 1. One link = TorusGeometry (radius 0.5, tube 0.12), stretched 1.6x in y. 2. Copy it 80 times with one InstancedMesh: 80 links, one draw call. 3. Draw a path with CatmullRomCurve3 through points in every section, from the first section all the way to the last. 4. Link i sits at t = (i / 80 + offset) % 1: position from getPointAt(t), direction from getTangentAt(t). 5. Turn every second link 90° around the tangent so the links interlock. 6. Scrolling changes the offset, so the chain slides through the page as if pulled. 7. Material: metalness 1, roughness 0.2, plus an environment map (without an environment map, chrome turns completely black). 8. Change the light colour per section: [white, red, then cyan rgb(80,220,255)]; the chrome reflects the new colour by itself. Page (top to bottom): 1. White opening: a spiky chrome star spins in the middle as the loader, then bursts into red and black cubes that form a ring around it. At the bottom a huge black wordmark "[LINKO]", a small line on the left "[We make websites you can touch]", and "100% 3D" on the right. 2. Grey section: one big slogan with two or three small picture cards. 3. Black section: a services list "[Art direction / Web design / 3D and motion / Development]", one small picture card each. 4. Red section: one big featured project. 5. Cyan-lit section: the chain lit in cyan, with small project cards. 6. Last section: red background, huge cyan type "[Make a website people want to touch]", next to it a hanging badge (like a staff pass) with the [LINKO] wordmark and a small "fictional brand" label. Make the card pictures with small three.js objects or CSS, no external images. Also add a breakdown mode: ?step=1 to ?step=8 in the address keeps the rest of the page the same and freezes only the chain at that step: 1 a single link, big, turning slowly; 2 80 identical links in a straight line; 3 only the path curve (a thin line), no links yet; 4 links placed along the curve but all facing the same way; 5 every other link turned 90°, interlocked; 6 scrolling pulls the chain (still a plain grey material); 7 chrome, and with &env=0 added no environment map (looks completely black); 8 light colour per section (the full site). Use a plain grey material for steps 1 to 6. It should feel like an award-winning site: huge type, thin lines, small monospace text, and only white, grey, black, red and cyan.
For our run we put three.js (r160) and the font files in the folder, asked Claude to use those local files, and asked it to check its work with headless Chrome screenshots. It took about 47 minutes, and after looking at its own screenshots it fixed a few things by itself: links too big, the chain covering the small corner text in the opening, and the last page's headline sitting too close to the chain (it moved the chain to the top and the headline down). If you haven't prepared three.js, add one line to the prompt: "load three.js from a CDN".
03Step 1: one ring, stretched 1.6x, is a link
TorusGeometry is three.js's built-in doughnut shape. Radius 0.5 is the distance from the centre of the ring to the centre of the tube, and tube 0.12 is how thick the tube is. That only gives you a round ring, so you stretch it 1.6x in y to get a long chain link.

04Step 2: copy it 80 times with InstancedMesh, drawn in one go
80 identical links don't need 80 objects. InstancedMesh is three.js's tool for drawing the same shape with the same material many times, where each copy only stores its own position and direction. The official three.js docs say it reduces the number of draw calls, which makes rendering faster.

05Step 3: draw a path through the whole page with CatmullRomCurve3
CatmullRomCurve3 takes a few points and draws a smooth curve through them. Claude put points in every section, 23 in total: the curve enters at the top left of the opening, swings left and right, and runs all the way to the last page. The 3D layer sits on top of the page text, so the chain crosses in front of the big type.

06Step 4: link i sits at t = (i / 80 + offset) % 1
t is a number from 0 to 1 that marks a spot on the curve: 0 is the start, 1 is the end. Link i sits at i / 80, so the 80 links spread evenly along the curve. getPointAt(t) gives that position and getTangentAt(t) gives the direction the curve is heading there, and the link is turned to face it. The official docs say these "At" versions sample by the curve's real length, so the spacing between links stays even.

07Step 5: turn every other link 90° and they lock together
A real chain alternates: one link flat, the next upright. So links 1, 3, 5… stay as they are and links 2, 4, 6… turn 90° around the curve's direction. In Claude's code it is a single line: links 2, 4, 6… get an extra Math.PI / 2 (90°).

08Step 6: scrolling changes the offset, and the chain gets pulled
The offset is tied to the scroll position. Scroll from the top to the bottom and the whole chain is pulled back along its path by 0.42 of its length, with a slight lag that makes it feel heavy. Claude also made the 3D camera follow the page, a little slower than the scroll, which gives depth between the chain and the text. Scroll back up and the chain slides back.

09Step 7: switch to chrome, and always add an environment map
Chrome takes two numbers: metalness 1 (fully metal) and roughness 0.2 (almost a mirror, slightly soft). But metal has no colour of its own. You only see it through what it reflects, and with nothing around it to reflect, the whole chain turns black.

An environment map gives the metal something to reflect. Claude didn't download an environment photo. It built a dark photo studio in code instead: a black background with 7 bright light panels, turned into an environment map with three.js's PMREMGenerator. The white highlights on the chrome are those panels. The official three.js docs also say you should always set an environment map with this material for the best results.
10Step 8: change the light colour per section
The last step doesn't touch the chain at all, only the lights. White light for the white opening and the grey section, red light for the black services section and the red project section, and cyan rgb(80,220,255) for the cyan-lit section and the last page. The light blends gradually between sections, so as you scroll the chain shifts from silver to red to cyan.

11Make it your own brand
- Brand name, city, wordmark, tagline, services and the last page's headline: just replace the [ ] parts of the prompt.
- Light colours: change the three colours in step 8. Fewer colours look better; three is plenty.
- Chain length: 80 links suits this 6-section page. For a short page, tell Claude "use 50 links, still exactly filling the path".
- Already built and only want a new brand: use the prompt below, which keeps the chain as it is.
Keep the current layout, the 8 chain steps and the ?step breakdown mode, and change only the brand: The studio is called "[brand name]" ([city]), wordmark [Latin wordmark]. Tagline: [one line]. Services: [service 1 / service 2 / service 3 / service 4]. Change the section lights to: [colour 1, colour 2, colour 3]. When you're done, open ?step=1 to ?step=8, take a screenshot of each and check them yourself.
12Good to know

- The studio LINKO and the FORGE project are fictional; the copy on the site was written by Claude as a demo.
- The site was built and checked for a 1440×880 desktop only. When we shrank it to phone width in headless Chrome, the layout broke (above). If phones matter, add "lay it out for a 390 px wide phone too, and check it with screenshots" to the prompt.
- We didn't test smoothness on a real phone. This build is deliberately light: 80 links in one draw call, no post-processing, no real-time shadows. Before adding more, open it on your own phone and see if it runs smoothly.
- Don't skip the environment map. Without it, chrome is solid black (left image in step 7).
- The top menu bar is transparent, so section headings slide underneath it as you scroll (visible at the top of the step 2 screenshot). We left it as Claude made it; you can tell Claude "give the menu bar a background colour".
- The 8-step chain recipe comes from the steps TikTok creator @webloved shared in a video caption. The prompt, brand and site are our own.