Drag, swipe or use the arrow keys

Lineup

Six looks stand on a ring that turns every five seconds. The model in front is sharp and moves; further back the figures get smaller and softer. Drag, swipe or use the arrow keys: the demo below is the real page, not a video of it.

  • Hero section
  • 3D carousel
  • Video loops

How it was made.

  1. 01/ 04

    HiggsfieldSoul 2 · 9:16

    Generate models

    Six full-body photos on white, one prompt per look.

  2. 02/ 04

    macOS VisionSwift

    Cut out

    Remove the background, locally on the Mac, no upload.

  3. 03/ 04

    KlingffmpegKling 3.0 · 5 s

    Motion

    Photo to clip, then forwards and back into a seamless loop.

  4. 04/ 04

    Claude CodeHTML · CSS · JS

    Build the page

    Images and clips into “assets”, prompt to Claude Code, done.

All prompts in full
016 image prompts
# 01 The City Edit
Full-body fashion lookbook photo, young man with curly dark hair, arms crossed, charcoal-grey chunky crew-neck knit sweater, wide light-blue denim jeans, grey sneakers, standing straight facing camera, entire body head to toe visible with space above head and below shoes, pure white seamless studio background, soft even shadowless light, no logos, no text

# 02 Gallery Opening
Full-body fashion lookbook photo, young man with braids, white oversized t-shirt, very wide washed vintage denim jeans, white sneakers, standing relaxed facing camera, entire body head to toe visible with space above head and below shoes, pure white seamless studio background, soft even shadowless light, no logos, no text

# 03 Gallery Opening
Full-body fashion lookbook photo, young man in olive-green chunky knit sweater, brown wide-leg trousers, tan leather shoes, standing relaxed facing camera, entire body head to toe visible with space above head and below shoes, pure white seamless studio background, soft even shadowless light, no logos, no text

# 04 Studio Day
Full-body fashion lookbook photo, young man wearing sunglasses, plain black t-shirt, silver chain necklace, pale wide-leg jeans, white sneakers, standing relaxed facing camera, entire body head to toe visible with space above head and below shoes, pure white seamless studio background, soft even shadowless light, no logos, no text

# 05 Studio Day
Full-body fashion lookbook photo, young man in burgundy rust knit sweater over a white t-shirt, grey wide-leg jeans, black shoes, standing relaxed facing camera, entire body head to toe visible with space above head and below shoes, pure white seamless studio background, soft even shadowless light, no logos, no text

# 06 Studio Day
Full-body fashion lookbook photo, young man in light-grey crew-neck sweatshirt, light washed wide-leg denim jeans, white sneakers, standing relaxed facing camera, entire body head to toe visible with space above head and below shoes, pure white seamless studio background, soft even shadowless light, no logos, no text
02Swift script
// cutout.swift — frees a person from the background with macOS Vision (macOS 14+)
// swiftc -O -o cutout cutout.swift && ./cutout look-1.png cut-1.png
import Foundation
import Vision
import CoreImage
import CoreImage.CIFilterBuiltins
import ImageIO
import UniformTypeIdentifiers

let args = CommandLine.arguments
let input = CIImage(contentsOf: URL(fileURLWithPath: args[1]))!
let handler = VNImageRequestHandler(ciImage: input)
let request = VNGenerateForegroundInstanceMaskRequest()
try handler.perform([request])
let result = request.results!.first!
let mask = CIImage(cvPixelBuffer: try result.generateScaledMaskForImage(forInstances: result.allInstances, from: handler))

let blend = CIFilter.blendWithMask()
blend.inputImage = input
blend.backgroundImage = CIImage.empty()
blend.maskImage = mask
let cg = CIContext().createCGImage(blend.outputImage!.cropped(to: input.extent), from: input.extent,
                                    format: .RGBA8, colorSpace: CGColorSpace(name: CGColorSpace.sRGB)!)!
let dest = CGImageDestinationCreateWithURL(URL(fileURLWithPath: args[2]) as CFURL, UTType.png.identifier as CFString, 1, nil)!
CGImageDestinationAddImage(dest, cg, nil)
CGImageDestinationFinalize(dest)
03Video prompt
The model stands in place, arms relaxed, subtle natural breathing, a slight weight shift from one leg to the other, small head turn, completely static locked-off camera, no zoom, no pan, plain white studio background stays unchanged, seamless loop feel
03ffmpeg command
# Drop audio, push the background to pure white, play forwards and back (seamless loop)
ffmpeg -i look-1-raw.mp4 -an -filter_complex \
  "[0:v]curves=all='0/0 0.70/0.71 0.86/1 1/1',split[a][b];[b]reverse,trim=start_frame=1,setpts=PTS-STARTPTS[r];[a][r]concat=n=2:v=1:a=0" \
  -c:v libx264 -crf 24 -pix_fmt yuv420p -movflags +faststart look-1.mp4

# Cut-outs as WebP in two sizes
cwebp -q 82 -alpha_q 100 -resize 640 1138 cut-1.png -o model-1-640.webp
cwebp -q 82 -alpha_q 100 -resize 1080 1920 cut-1.png -o original-look-1.webp
04Page prompt
Build a single page with plain HTML, CSS and vanilla JavaScript (no framework): a site header plus a fashion hero section called "Try the Look." for a fictional streetwear brand "NORDLAY". White, clean, Helvetica for text, Inter 600 only for the header nav.

ASSETS (local, in ./assets/)
- model-1-640.webp … model-6-640.webp and original-look-1.webp … original-look-6.webp: transparent full-body cut-outs, 9:16, feet at the bottom edge.
- look-1.mp4 … look-6.mp4: matching 10 s video loops on a pure white background (no audio).
Looks: 01 The City Edit · 02 Gallery Opening · 03 Gallery Opening · 04 Studio Day · 05 Studio Day · 06 Studio Day.

HEADER
88px high (68px on phones), wordmark "NORDLAY" left (letter-spacing .32em), nav Home · Women · Men · Lineup (current), a bag icon with a "0" counter. On phones hide Women and Men. 1px bottom border #e4e4e4.

HERO
- Frame height = viewport minus header on desktop, 109% of the viewport on phones (100% when the page runs inside an iframe).
- Title "Try the Look." 46px (24px phone), weight 400, letter-spacing -.02em; subline 12px #66625c: "Six looks, styled head to toe. Drag or swipe through the lineup."
- Desktop (≥750px): a 3D ring of 12 bodies (the six looks twice). For body a at angle φ = (a − cur)·30°: depth z = R(1 − cos φ) with R = 0.62W, perspective p = P/(P + z) with P = 1.65W, x = 0.5W + R·sin φ·p, feet move from the floor (H − 34px) up to a horizon at 0.36H as p shrinks, scale = p (the front model 8% larger), blur 1.8px per slot up to 6.5px, opacity fades out towards the back.
- Phones (≤749px): a diagonal line instead — front model at 30% width, each further model +32% width, 22px higher, scale ×0.76, slightly blurred; every body follows its target with its own lag so the line walks.
- Motion: a critically damped spring (stiffness 95, damping 2·√95), three sub-steps per frame, render loop only while visible.
- When the ring rests, show the front look as a separate "hero" figure that plays its video loop with mix-blend-mode: multiply over the white stage — only if no other figure overlaps it; otherwise keep the still image.
- A soft radial contact shadow under every figure, and a light sweep (soft-light band) across the stage on each change.
- Controls row: prev arrow · six progress ticks "01  The City Edit" … (the current one 190px wide with the name) · play/pause · next arrow.
- Autoplay every 5 s with the current tick filling linearly; pause while dragging or when the tab is hidden.
- Input: drag/swipe (one look per swipe on phones, momentum on desktop), horizontal trackpad wheel, arrow keys on the focused stage, click a back figure to bring it to the front. A custom 84px round "Drag" cursor with inertia on devices with a fine pointer.
- Intro: title and stage fade in with a slight blur when the section enters the viewport, while the ring turns 1.15 steps into place.
- Accessibility: the stage is a focusable carousel region, a polite live region announces "Look 3: Gallery Opening", ticks carry aria-current. With prefers-reduced-motion everything jumps to its place and autoplay stays off.

What the demo shows

  • 3D ring with twelve figures on a critically damped spring — the turn eases out smoothly without overshooting
  • Depth blur and perspective towards the back, a contact shadow under every figure
  • A layout of its own on phones: the models stand one behind the other on a diagonal and follow one after another
  • Autoplay every five seconds with a progress bar, pause with one button
  • Works with mouse, touch, trackpad and keyboard; announcements for screen readers
  • The front model moves as a video loop that plays forwards and back, so it blends into the still without a jump
  • With “reduce motion” set in the operating system, every figure stands still in its place

Where images and motion come from

  • Brand, people and clothing are fictional.
  • The six models are AI-generated (Higgsfield, Soul 2) and cut out locally with macOS Vision.
  • The models' movement is AI-generated (Kling 3.0) and post-processed onto a white background.

Contact

Let's discuss
your project
together.

Send me a message or fill out the contact form. I'll get back to you within 24 hours.

Paul Mill

Paul Mill

hallo@paulmill.com