Navy Rider

Move your mouse over the model: wherever the trail runs, the white t-shirt tears open and the midnight-navy helmet and jacket show underneath. After a little over a second the trail pulls back. On a phone a swipe is enough, and when the screen is idle the trail wanders on its own.

  • Hero section
  • Canvas
  • Hover effect

How it was made.

  1. 01/ 03

    HiggsfieldSoul 2 · Qwen Edit

    Generate two images

    First the portrait, then the rider version from exactly that image — same pose, same crop.

  2. 02/ 03

    macOS VisionSwift

    Cut out

    Cut both out and bring them to the same size, so the layers line up exactly.

  3. 03/ 03

    Claude CodeHTML · Canvas · JS

    Build the page

    Images and font into “assets”, the optimised prompt to Claude Code, done.

All prompts in full
012 image prompts
# Front (Soul 2, 3:4)
Waist-up studio fashion portrait of a Korean man in his early 20s, short black textured hair, calm confident expression looking straight into the camera, wearing a plain fitted white ribbed crew-neck t-shirt tucked into black trousers with a black belt, arms relaxed at his sides, standing straight and facing the camera, symmetrical, centered, framed from the hips up with clear space above the head, pure white seamless studio background, soft even shadowless light, photorealistic, no logos, no text

# Rider (Qwen Image Edit, front image as reference, aspect_ratio 3:4)
Keep the exact same man, the exact same pose, the same arms with hands in pockets, the exact same framing, crop, camera angle and scale, the same pure white background and the same black trousers and belt. Only change his head and top: a glossy very dark midnight-navy full-face motorcycle helmet (almost black-blue, hex #0b1a3a) with a dark iridescent blue visor fully closed over his face, and a fitted very dark midnight-navy leather racing jacket (hex #0b1a3a), zipped up, with thin white racing stripes on the sleeves and shoulders and small white star patches. Photorealistic studio fashion photo, soft even shadowless light, no logos, no text, no brand names
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)
02cwebp command
# Both cut-outs at the same size, so the two layers line up exactly
cwebp -q 90 -alpha_q 100 -sharp_yuv front-cut.png -o front.webp
cwebp -q 90 -alpha_q 100 -sharp_yuv -resize 1536 2048 back-cut.png -o back.webp
03Page prompt
Build one page with plain HTML, CSS and vanilla JavaScript (no framework, no build step): a site header plus a full-screen hero called "Navy Rider" for the fictional rider "Jun Park-Seo". Inline <style> is fine; the script lives in its own file navy-rider.js. Everything is self-hosted.

ASSETS (./assets/)
- front.webp: the man in a white t-shirt and black trousers, transparent cut-out, 1536 × 2048 (3:4), hips at the bottom edge.
- back.webp: the same man, same pose and framing, in a glossy midnight-navy helmet with a blue visor and a navy leather racing jacket with white stripes and star patches. Same size and alignment.
- inter-tight-latin.woff2 (variable). Preload both images and the font.

TOKENS
Ink #0a1022, muted #5b6680, ghost #b9c3d4, hairlines rgba(15,35,80,.16), accent #0f2350 (deep midnight navy). Mono labels: ui-monospace, 11px, uppercase, tracking .08em. The background stays light so the navy gear stands out while it is revealed.

BACKGROUND
A soft mesh gradient: white light behind the upper body, periwinkle top left, ice blue top right, a navy haze rising from the bottom, base #f1f4fa → #e2e8f3. Above it a light layer that drifts slowly (26 s, transform only, no filter), a fine dot grid (1px dots every 28px) masked to fade towards the edges, and five 1px speed lines that streak across at different heights and delays.

HEADER (fixed)
Wordmark "Jun Park-Seo" (16px, 600) with a mono "N°03" beside it, no logo tile. Nav: Rides · Lookbooks · Journal and a navy "Say hi! ↗" button. No shadows anywhere.

HERO (100svh)
- Two uppercase marquee rows behind the figure: "RIDE AFTER DARK" as a 1px outline moving left (38 s) and "RIDE DEEP STAY BOLD" in ink moving right (32 s), with "Deep" in navy. clamp(54px, 9.6vw, 168px).
- Figure: bottom-centred, height min(94svh, 133vw), 3:4. A hidden <img> holds the front and its alt text; a <canvas> paints both layers. Behind the head a thin ring with a dashed inner ring and a navy dot on a 14 s orbit.
- Spec notes pinned to the figure with a pin and a hairline leader: "Helmet / 01 · Gloss midnight" right of the head, "Racing jacket / 02 · Navy leather" at the right arm, below the marquee. A pin fills navy while the trail passes it.
- Bottom left an intro: mono eyebrow "FW27 Drop — 12 pieces", "Gear for the hours / after dark." (second line navy), one sentence, an ink "Shop the drop ↗" button and an underlined "View lookbook". Below it the hint: navy dot + "Move your cursor to suit up".
- Right edge a vertical mono label "Built for the late ride". Bottom right a white pill "Navy Rider · FW27" with a thin meter and a percentage: how much of the silhouette is revealed right now.
- Cursor (fine pointers only): a flat 14px navy dot with a mono readout "X 0.44 · Y 0.38" in figure coordinates.

REVEAL EFFECT
- A brush trail follows the pointer. Inside it the front is erased completely and the rider shows — the front never shows through.
- Each stamp is 3–5 overlapping hard-edged circles (base = max(W, 260) × 0.12, × 0.15 on touch), so edges look torn. Fast moves are filled with intermediate stamps every max(W, 260) × 0.04 px (max 40). A stamp holds, then shrinks during the last 75 % of its 1100 ms life.
- Two offscreen canvases: mask (the trail) and buf (back clipped to the mask). Per frame: front cover-fit and bottom-anchored, erase with the mask (destination-out), then draw buf (mask, then back with source-in). Canvas = figure size × min(devicePixelRatio, 2), imageSmoothingQuality high.
- Meter: compare the mask against the front's alpha on a 30 × 40 grid, at most every 120 ms.
- Touch detection is live via matchMedia("(hover: none), (pointer: coarse)"); the hint switches to "Drag to suit up". On touch, after 2.5 s without input the trail wanders on its own.
- Loops run only while the hero is visible and the tab is active. prefers-reduced-motion: marquees, drift and orbit stand still, no speed lines, no wandering.

BELOW 1080px hide notes, intro and side label. PHONE (≤ 720px): nav with logo and "Say hi!" only, figure width min(160vw, 64svh), tag hidden, the hint as a centred white pill. No horizontal scroll.

What the demo shows

  • Two images generated to line up exactly, layered in one canvas — inside the trail the front one is cut away completely, not just cross-faded
  • Every brush stamp is three to five overlapping hard-edged circles, so the edges look torn rather than round
  • Fast moves are filled in with intermediate stamps, so the trail stays continuous
  • Annotations on helmet and jacket light up when the trail crosses their pin; bottom right, a meter shows how much of the outfit is revealed
  • Two marquees running in opposite directions behind the figure, a ring with an orbiting dot, fine speed lines and a slowly drifting gradient
  • A layout of its own on phones: a larger figure, the hint as a pill, the trail wanders by itself when idle
  • Everything runs only while the demo is in view; with “reduce motion” the marquees and gradient stand still

Where images and motion come from

  • Person, name and collection are fictional.
  • Both images are AI-generated: the portrait with Higgsfield (Soul 2), the rider version from it with Qwen Image Edit; cut out with macOS Vision.

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