Guides / Websites

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

White shop site: hoodies hanging side-on on a thin rail, the grey 慢慢來 hoodie turned to face you, NT$ tags below.
Hover the grey hoodie: it turns from side to front and its neighbours step aside.

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.

The same site with no hover: every garment hangs side-on under the NEW COLLECTION label.
With no hover: everything side-on, like a real shop rail.
  1. Open the demo and wait for the clothes to appear on the rail.
  2. Move the mouse slowly along the row: each garment turns to face you.
  3. Hold and drag the rail left and right; the row follows.
  4. 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.
  5. 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.

First garment (paste into ChatGPT)
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.
Wide ChatGPT image: one grey hoodie on one hanger, side, front with 慢慢來, and back, on white.
ChatGPT's original: side, front, back (AI-generated).
From the second garment on (same chat, one per turn)
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].
ChatGPT three views of a forest-green hoodie: side, front with cream 台北 letters, back.
Garment 2: same chat, only the garment line changes.
ChatGPT three views of a black nylon coach jacket: side, snap-button front, back with a big white 巷口 print.
The coach jacket: the print is on the back only, so you see it when it turns on the product page.
  1. All 8 garments were made in the same chat; each time only the sentence after "The garment:" changes.
  2. 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.
  3. Put the 24 photos in the site folder's img/.

03Step 2: the prompt, pasted whole into Claude Code

Website prompt (swap the [ ] parts for your brand and products)
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:

Second message (after the photos are in)
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.

Hovering the forest-green 台北 hoodie: it turns to the front and grows, the garments on both sides move out of the way.
Another hover: the forest-green 台北 hoodie turns around.

04The product page: a turn made from three photos

Product page: big grey hoodie on the left; name, NT$1,680, sizes S–XL and a black Add to cart button on the right.
Click a garment: big photo on the left, name, price, sizes and Add to cart on the right.
The same product page with the hoodie turned to its back.
After a few seconds it turns to the back on its own and back again; you can also drag to turn it.

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.

Product page of the black coach jacket: 末班車教練外套 NT$2,280, big white 巷口 print on the back.
The coach jacket turned to the back, showing the big 巷口 print.
Product page at phone width: garment on top, name, price, sizes and Add to cart below.
On a phone the product page stacks top to bottom (a screenshot from Claude Code's own self-test).

05Make it your own brand

  1. 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.
  2. Brand, product names and prices: change the [ ] parts of the prompt, or edit the product list at the top of main.js.
  3. Number of garments: change "14 hangers" and "g1 to g8, 8 garments" in the prompt together.
  4. To go live: drag the whole folder onto Netlify Drop, or put it on GitHub Pages.

06Watch out

  1. All garment photos are AI-generated, not real photos; the brand HANGKOU, its products and prices are fictional.
  2. 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.
  3. Every run is different. With the same prompt, your layout, product names and turn effect may not match ours.
  4. Have the three views ready first. With only a front photo, the clothes can't hang side-on and the effect doesn't work.

Sources

Related guides