A clothes-rail shop site built with Claude Code: hover and the garment turns, with prompts and demo
Clothes hang side-on on a rail, turn to face you on hover and spin on the product page. One Claude Code prompt, ChatGPT photos. Full prompts, screenshots, demo.
You may have seen this kind of clothing site on Instagram: the clothes aren't in a grid, they hang side-on on one clothes rail, and when you move the mouse over one, it turns to face you.
The page in this guide was built by a fresh Claude Code agent from one prompt; the product photos are ones we generated in ChatGPT (AI-generated, not real photos). The brand HANGKOU and all its products and prices are fictional. You get the full website prompt (swap the [ ] parts for yours), the ChatGPT prompt that makes three views in one image, real screenshots, and a demo you can play with.
01The result: a row of hanging clothes that turn when you hover

The page has one star: a clothes rail across the screen with 14 hangers holding 8 garments (some repeat), all side-on, so they look thin and sit right next to each other. The clothes sway a little, the whole row slowly drifts sideways, and you can drag it with the mouse.

- Try it: the HANGKOU clothes rail site — Best on a computer: hover the clothes, click one, pick a size, add to cart
- Open the demo and wait for the clothes to appear on the rail.
- Move the mouse slowly along the row: each garment turns to face you.
- Hold and drag the rail left and right; the row follows.
- Click a garment to open its product page, watch it turn to the back on its own, pick a size and press Add to cart: the bag at the top right goes up by 1.
- Press "← Back to the rail" at the top left to go back.
02Step 1: make the product photos in ChatGPT (three views each)
The trick behind the effect is three photos per garment: hanging side-on, front and back, with exactly the same light and hanger, so nothing jumps when it turns. So we didn't generate them in three goes: we asked ChatGPT to draw all three views side by side in ONE image, then cut it into three.
Create an image. Product photos for a fictional Taiwanese streetwear label's online shop. Landscape 3:1 wide image, pure white background, soft even studio light, a soft faint shadow only. Three views of the SAME garment on the SAME thin black metal hanger, placed side by side in three equal panels with lots of white space between them, each centred in its panel, same size and same height (hanger hook at the top of each panel): LEFT panel: the garment hanging seen exactly from the side (edge-on, so it looks thin, like on a shop rail); MIDDLE panel: the front; RIGHT panel: the back. The garment: [a heather-grey heavyweight pullover hoodie with a big black hand-brushed Traditional Chinese print 「慢慢來」 across the chest (front only)]. Realistic e-commerce photo. No other text, no logos, no people, no mannequin.

Same format exactly (3 panels: side-on, front, back, same hanger, white background, same light). The garment: [a forest-green hoodie with cream varsity-style collegiate letters 「台北」 arched across the chest (front only), cream drawstrings].


- All 8 garments were made in the same chat; each time only the sentence after "The garment:" changes.
- Cut each image into three equal parts (left, middle, right) and save them as g1-side.png, g1-front.png, g1-back.png, up to g8. We cut them with a small Python script, no retouching.
- Put the 24 photos in the site folder's img/.
03Step 2: the prompt, pasted whole into Claude Code
Build me a website for a clothing brand: the Taiwanese streetwear label [HANGKOU] (a fictional brand), selling hoodies, zip hoodies and coach jackets. The feel I want: the clothes are not laid out in a grid, they really hang on one clothes rail. The product photos are all in img/, three per garment, same white background and light: g1-side, g1-front, g1-back (hanging side-on, front, back), g1 to g8, 8 garments: [g1 grey hoodie "慢慢來" NT$1,680, g2 forest-green hoodie "台北" NT$1,780, g3 black hoodie NT$1,580, g4 off-white hoodie NT$1,580, g5 navy zip hoodie NT$1,880, g6 black coach jacket NT$2,280, g7 charcoal hoodie "夜市" NT$1,680, g8 sage-green hoodie NT$1,580]. (Name them for me, short and easy to remember.) Page: 1. A thin nav bar at the top: brand wordmark on the left, New / Hoodies / Jackets / Our story / Stores in the middle, search and a shopping bag (with a count) on the right. 2. A small label "NEW COLLECTION · 2026 Winter", with a short line next to it "Street everyday, worn slowly". 3. The star: one thin clothes rail across the whole screen (a line plus small hooks), 14 hangers on it (the 8 garments can repeat), each showing its "side" photo, so they look thin, one right next to the other; under each a tiny swing tag with the NT$ price. The clothes sway slightly. The whole row slowly drifts sideways on its own, and you can drag it left and right with the mouse. 4. Hover one garment: it turns to face you (from the side photo to the front photo, with a bit of rotateY turn and zoom), the two neighbours are pushed aside a little to make room, the others stay side-on. Mouse out and it turns back to the side. 5. Click a garment: open a product page, a big garment on the left that slowly turns from front to back and back again (use the three photos to fake the turn; dragging turns it too); on the right the name, price, colour, size buttons S M L XL (selectable), a big black "Add to cart" button (pressing it adds 1 to the bag count), and one line of shipping info. Top left "← Back to the rail" returns to the rail. 6. Under the rail, a short line about the brand on the left and a "See all products" link on the right. Style: a clean, bright white e-commerce site, lots of white space, thin black type, small English labels, like a high-end select shop. The clothes are the only colour. Mainly Traditional Chinese (Taiwan), with a few small English words.
We also added a few technical notes (work only in this folder, local fonts, plain HTML/CSS/JS, self-test in headless Chrome when done) and no design direction at all. Claude Code wrote the code first; once the photos arrived we gave it a second message:
All 24 photos are now in site/img/ … look at them, tune L.sp / the background threshold / anything else to the real photos, run node _test/test.js with the real photos, fix what you see.
In that round it made transparent cut-outs of the white-background photos (like g1-side-cut.png) and tuned the spacing between garments, how far neighbours move on hover, and the turn on the product page.

04The product page: a turn made from three photos


There is no 3D model here. Claude Code switches between the front, side and back photos and adds a little horizontal squeeze and zoom at each switch, so it looks like the garment is turning. The product names and descriptions (like 末班車教練外套, the "last bus" coach jacket) are its own; the prompt only gave colours and prices.


05Make it your own brand
- Product photos: make your garments as in step 1, save them with the same names (g1-side / g1-front / g1-back…) in img/, then ask Claude Code to remake the cut-outs.
- Brand, product names and prices: change the [ ] parts of the prompt, or edit the product list at the top of main.js.
- Number of garments: change "14 hangers" and "g1 to g8, 8 garments" in the prompt together.
- To go live: drag the whole folder onto Netlify Drop, or put it on GitHub Pages.
- Claude Code
- ChatGPT — What we used for the product photos
06Watch out
- All garment photos are AI-generated, not real photos; the brand HANGKOU, its products and prices are fictional.
- Claude Code wrote the site. For the demo we changed one thing: the cut-outs are converted from PNG to WebP (and the file extension in the code changed with them) so the page loads faster.
- Every run is different. With the same prompt, your layout, product names and turn effect may not match ours.
- Have the three views ready first. With only a front photo, the clothes can't hang side-on and the effect doesn't work.