Site · Landing page
Northbound Night-train travel landing on scroll-scrubbed film
A sleeper-train journey company where scroll drives real travel footage through the night, with a live route map, timetable and cabin booking over the film. Bring your own video.


What's in the prompt
- A full written spec: layout, tokens, every animation with its numbers, responsive rules
- The complete working code as the reference implementation, also as a ready-to-run .zip with every image, video and 3D model
- Accessibility, reduced motion and fallbacks already handled
- A “Make it yours” checklist so your site looks like nobody else’s
- Type
- Site
- Built with
- HTML, CSS, JS · no libraries
- Prompt size
- 89 KB
- Tags
- travel, scroll video, booking, bring your own video
- Updated
- 2026-11-26
Use it in three steps
- Copy the prompt with the button above.
- Paste it into your AI (Claude, Claude Code, ChatGPT, Cursor…) and add your edits.
- Launch the single
index.htmlanywhere: Cloudflare Pages, Netlify, GitHub Pages.
About the Northbound design
Northbound is a one-page site for a fictional sleeper-train company that runs one train a night from Selvik to Aurvik: 1,142 km and 13 h 15 min north, through mountain tunnels, past a fjord at blue hour and over the Polar Circle to the aurora. The palette is night ink and paper with carriage-lamp amber, a wool-blanket rust and an aurora green used only twice. Instrument Serif sets the headlines, Hanken Grotesk the body and JetBrains Mono every time and HUD value. The signature is a 720vh section with a sticky, scroll-scrubbed travel film: scrolling down moves the train forward and scrolling up moves it back.
Over the film run a route map whose train dot follows the line, a six-cell HUD (distance, local time, outside temperature, next stop, speed and latitude) that agrees with the timetable, a list of stops to jump to, six chapter reveals, canvas snow and amber tunnel-lamp streaks. Below come a departure board with a direction toggle, a cabin picker with a tilting carriage plan, a working booking form with live fares and a held-ticket reference, an FAQ and a footer. You supply the footage. Without it, a CSS night sky runs the same journey and the HUD keeps working.
Good for
- Rail, ferry and coach operators: the HUD, map and timetable are driven by the same journey data
- Tour and expedition companies: chapters tie each stretch of the film to a time and a place
- Boutique hotels or lodges with a signature route: the cabin picker and booking work for rooms too
- Destination marketing: the film arc runs from dusk to aurora, and you swap in your own footage
- Teams without 3D skills: there is no WebGL, just video, CSS and one canvas
How Northbound is built
- Seek-safe video scrubbing. Scroll progress eases with
sp += (p − sp) × min(1, dt × 7.5), maps through sixfilmKeysto film seconds, and only one seek is in flight; a newer target waits forseeked, and seeks under 1/30 s are skipped. - Film loaded as a blob. Over http(s) the page streams the whole MP4 with
fetch(), shows the byte count in the Boarding preloader, then plays it from an object URL so seeks come from memory; phones get the 720×1280 portrait file. - HUD from keyframes. Piecewise-linear keys map progress to km (0 to 1,142), minutes after 18:40, temperature (+3 to −19 °C), latitude (63.43 to 69.65° N) and speed, so every readout and the map agree at any scroll position.
- Fallback that runs the same story. If the film is missing or cannot decode, the stage gets
.nofilmand a CSS sky with keyframed gradients, stars, ridges, aurora blobs, tunnel lamps and snow carries the journey from the same scroll value. - Booking with real rules. Fares use per-km rates per cabin with a €39 minimum, children at 60% in couchettes and
ceil(travellers / capacity)cabins; validation covers dates (180 days, 24–25 December), route direction, names and infants, and the hold reference usescrypto.getRandomValues.
Images, video and 3D
The download includes four 1200×800 WebP cabin photos made with an AI image generator in one warm 35 mm look. The travel film in the live demo is licensed stock footage for the demo only and is not in the download, so you supply your own: a 1920-wide all-intra MP4, a 720×1280 portrait crop and a WebP poster for each, placed in assets/film/ with the CONFIG paths pointed at them. Prepare the clips with the free scroll video encoder at /tools/scroll-video-encoder/ or the ffmpeg command in the prompt. Until then the page runs its night-sky fallback.
Build it with Claude
Ask Claude for the full index.html. The preview has no film file, so it shows "Film unavailable · running the night-sky view", and the sky, map, HUD and chapters still follow scroll. Check that the timetable toggles to southbound, that Choose this cabin selects that cabin in the booking form, and that a Single with children, a 25 December date and a one-word name are all rejected.
Claude guide →Build it with Claude Code
Make your clips with /tools/scroll-video-encoder/ (every frame a keyframe), put them and the posters in assets/film/, and point the four CONFIG paths there. Serve with python3 -m http.server so the film loads through fetch rather than file://. Ask Claude Code to scroll headlessly and check that the HUD reads 1,142 km and Arrived · Aurvik at the end, and that removing the film shows the fallback pill with no script errors.
Build it with ChatGPT
Ask ChatGPT for the page in parts, or in canvas: the HTML and CSS, the scroll engine and film scrub, the HUD and sky keyframes, the snow canvas, then the timetable, cabins and booking. A common follow-up is seeking: check it keeps only one seek in flight and applies the newest target on seeked, or fast scrolling will queue seeks and lag behind.
If it doesn’t work
- Scrubbing stutters or jumps: the clip must be all-intra (every frame a keyframe), so re-encode it with /tools/scroll-video-encoder/ or
-g 1in ffmpeg. - The film never appears when opened from a folder: serve the page over http, because the blob loader uses
fetch(). - Chapters land on the wrong shot after you swap footage: retune
CONFIG.filmKeysso each chapter's progress range maps to its own shot's seconds.
Questions about Northbound
Is the Northbound train footage included in the download?
No. The film in the live demo is licensed for the demo only, so the download leaves it out and opens in the night-sky fallback. Supply your own clips: a 1920-wide MP4, a 720×1280 portrait crop and a poster for each, then point CONFIG at them. The free encoder at /tools/scroll-video-encoder/ makes them scroll-ready.
What footage works best for the Northbound scroll film?
15–30 s made of 2–4 shots, each with one slow, steady camera move, no fast cuts, no shake and no text, running from light to dark and ending on the most striking frame. Join shots with a fade to black where the tunnel chapter sits, and encode at 15 fps with every frame a keyframe.
Make it yours
Everyone who pastes this gets the same night train unless they change it. Make these edits first. Each one keeps the structure and the interactions.
- Brand and route. Rename Northbound, the six stations, the times and the 1,142 km to your own journey: a ferry crossing, a desert rail line, a river cruise or a long-haul overnight bus. Keep 5–7 stops and keep the HUD keyframes monotonic so the map, clock and km still agree.
- The film. The scrubbed clip is the signature, so shoot or source your own arc: harbour lights to open sea to sunrise, city at dusk to forest to snow, or valley to pass to lake. Keep one camera move per shot and a fade-to-black "tunnel" beat. If you have no tunnel, rename that chapter to "night crossing" and keep the amber lamp streaks as cabin lights.
- HUD readouts. Swap the six cells for what your journey measures: depth, knots, altitude, wind, sea temperature or sunrise countdown. Keep six cells, mono values and the single live dot.
- Palette. Replace
--lamp,--rustand the paper tones with your brand pair. Keep amber-type warmth for the on-film accent so it reads on dark footage, and keep--paper-muteat ≥ 4.5:1 on the paper ground. - Type pairing. Swap Instrument Serif and Hanken Grotesk for another condensed or high-contrast serif with a plain grotesk, such as Gloock with Figtree or Fraunces Soft with Work Sans. Keep a mono for every number.
- Cabins. Rename the four types and regenerate the four photos as one set, with the same lens, the same warm practical light and a night window, from your own product: ferry cabins, glamping pods or hotel rooms. Redraw the carriage plan as your deck, floor or vehicle plan.
- Copy voice. Rewrite the chapters as things that really happen on board, at a time and a place ("23:52 · Lysfjord — we slow to 40 km/h along the water"), not mood words.
"Build exactly as specified, but with these changes: …"