---
name: build-fashion-runway-site
description: "Use when building a single-file fashion runway site from folder videos: perspective walk loop, hover freeze, tap detail view."
---
# Build "vyrn." Fashion Runway Site
## What this does
Builds one self-contained `index.html` where each video in the project folder becomes a model walking an infinite perspective runway; tapping a model opens a centered detail view with product text.
## When to use
Use when someone wants a single-file fashion runway/catwalk site driven by the video files in their project folder.
## How to run it
Follow the creator's build instruction:
1. **Deliverable.** Produce **one single `index.html`** in the project root; all CSS and JavaScript **inline**; **no frameworks, no build tools, no external requests** (no CDNs, web-fonts, or libraries). When finished, **serve the result on a fresh localhost port** (e.g. `python3 -m http.server`) and give the user the URL. It **must be responsive** - fills any window size, desktop and mobile, no white letterbox bars. Two states: the **runway** (all models walking) and the **detail** view.
2. **Media.** Look in the project folder for **video files** (`.mp4`, `.mov`, `.webm`, `.m4v`), sort by filename; **each video becomes one model**, in that order; don't hardcode filenames. Transcode browser-unplayable clips to **H.264 `.mp4`** (`yuv420p`, `+faststart`, no audio), longer side ~900px. Every video is `muted`, `loop`, `autoplay`, `playsinline`, `preload="auto"`; clips are full-body model shots on white/near-white backgrounds.
3. **Fallback fill (required).** With **no** videos, still build the site with **7 models**. For any missing/failed video render a **solid fill of color `#EDE6E2`** in the same frame, behaving identically (runway motion, hover, tap).
4. **Canvas & fonts.** Author on a fixed **1440 x 900** stage scaled to COVER: `scale = max(innerWidth / 1440, innerHeight / 900)`, anchored bottom-center (`left:50%; bottom:0; transform: translateX(-50%) scale(scale)`), `overflow: hidden`, recompute on `resize`, page `#ffffff`. UI sans `"Suisse Intl", "Helvetica Neue", Helvetica, Arial, sans-serif`; price serif with lining figures `"Instrument Serif", "Didot", "Bodoni 72", "Times New Roman", Times, serif` plus `font-variant-numeric: lining-nums; font-feature-settings: "lnum" 1, "onum" 0;`.
5. **Furniture.** Logo top-left fixed (`left:12px; top:16px; width:161.87px; height:71px; z-index:100000`), scaled by the cover-scale, above the models. Bottom nav centered inside the stage (`bottom:20px; display:flex; gap:4px; z-index:100001`) of pills (`background: rgba(0,0,0,0.05); backdrop-filter: blur(20px); border-radius: 200px; height: 28px`): search icon pill (28x28); wide links pill (`width:600px; padding:6px 24px; justify-content:space-between`) with uppercase 12px 600 links **New arrivals | women | men | bags | shows**; heart, user, cart icon pills (`stroke:#000; stroke-width:2; 14x14`).
6. **Runway motion.** Models walk toward the viewer - gliding left->right, drifting down, growing in scale, exiting right as another appears tiny in back: a **seamless, infinite loop**. Model frame natural size **1200 x 2980** (`transform-origin: 0 0`). Path through 9 control points:
```js
var CX=[-96.5,-1,108.5,263,460.5,694,1013,1422.5,1832], BY=[506,521,554,600,662,736,831,961,1091],
SC=[0.034167,0.046667,0.0675,0.098333,0.139167,0.188333,0.251667,0.339167,0.4572],
NAT_W=1200, NAT_H=2980, PERIOD=8, SLOT_MS=3600, prog=0, lastTime=null, paused=false; // 3600ms per slot ~ an elegant walking pace
function lerp(a,b,t){ return a+(b-a)*t; }
function place(el,q){ var i=Math.floor(q), f=q-i,
s=lerp(SC[i],SC[i+1],f), cx=lerp(CX[i],CX[i+1],f), by=lerp(BY[i],BY[i+1],f);
el.style.transform="translate3d("+(cx-NAT_W*s/2)+"px,"+(by-NAT_H*s)+"px,0) scale("+s+")";
el.style.zIndex=String(Math.round(s*10000)); }
```
Each frame add `dt/SLOT_MS` to `prog` and place every model at `q = (prog + i*SPACING) % PERIOD` with `SPACING = PERIOD / N`; stagger each clip's `currentTime` (`(i/N)*duration`); honor `prefers-reduced-motion`.
7. **Hover.** Hovering any model **freezes the entire runway**, **pauses and dims every other model to 70% opacity**, and lets **only the hovered clip keep playing**; **no scale change** on hover. On mouse-out everything resumes (0.45s opacity transition on an inner wrapper).
8. **Tap/click.** **All other videos turn off** and fade out; the tapped model **animates to the center of the screen** (~0.65s transform transition), keeps playing, sized to ~**90% of viewport height**; two panels fade in (0.5s).
```js
function detailTransform(el){ var cs=coverScale, vw=innerWidth, vh=innerHeight,
s=(vh*0.9)/(NAT_H*cs), maxBoxW=vw-600;
if (NAT_W*s*cs>maxBoxW) s=maxBoxW/(NAT_W*cs);
el.style.transform="translate3d("+(720-NAT_W*s/2)+"px,"+(900-vh/(2*cs)-NAT_H*s/2)+"px,0) scale("+s+")"; }
```
9. **Detail panels.** Both viewport-fixed, vertically centered, uppercase, 12px, weight 600, `#000`. Left `left:24px; width:220px;` gap 20px: product **name**, **description** (`line-height:1.45`), **more details** (underlined). Right `right:24px; width:154px;` gap 12px: **add to wishlist** (underlined); size row `34 36 38 40 42` (selected size underlined); **price** in serif lining figures (`font-size:40px; letter-spacing:-0.8px; line-height:1`); **add to cart** black rounded button (`width:107px; height:32px; border-radius:23px`). Give **every model a distinct name, description and price**, assigned in order (cycle the list if more models than entries):
| # | Name | Description | Price |
|---|------|-------------|-------|
| 1 | Sabbia Croc Set | Two-piece in croc-embossed leather - a sculpted long-sleeve top with a floor-grazing column skirt and matching boots. | £2450 |
| 2 | Balloon-Sleeve Leather Top | Nappa leather top with dramatic leg-of-mutton sleeves, worn with second-skin leggings and opera gloves. | £1890 |
| 3 | Dune Jersey Catsuit | Second-skin turtleneck catsuit in stretch jersey. Body-hugging silhouette with a hidden zip and extra-long sleeves. | £1100 |
| 4 | Onyx Leather Playsuit | Long-sleeve leather playsuit with peaked shoulders and a nipped waist, shown over sheer tights. | £1650 |
| 5 | Drape Halter Bodysuit | Halter bodysuit in fluid jersey with a gathered neckline, styled with leather opera gloves. | £780 |
| 6 | Corset Leather Playsuit | Boned leather playsuit with a sweetheart bustier and fine straps. Finished with knee-high boots. | £1290 |
| 7 | Cascade Fringe Gown | Floor-sweeping halter gown in liquid fringe. Bias-cut column silhouette that moves with every step. | £3200 |
| 8 | Vapor Silk Slip | Bias-cut silk slip dress with a whisper-fine strap and a fluid, liquid drape. | £960 |
10. **Closing - BACK ARROW ONLY.** Opening the detail view pushes a history entry (`history.pushState`); a `popstate` event closes it (reverse the transitions, fade the other models back in, resume playback, unfreeze the runway). Do **not** add any other way to close it.
## Output
Hand back the single `index.html` file, served at a fresh localhost URL, with the acceptance checklist met.
## Credit
Based on public content by vikkibreusova, packaged by Orbit.