A dark one-page website for a camper-van road-trip company: misty mountains drawn in layers, a sky that turns from day to night as you scroll, and a van that drives the route.
React + HTML
$69
Alamat halaman: /
Selengkapnya di bawah ↓
Sudah termasuk
Yang Anda dapat
Hanya gelapDibuat untuk halaman gelap
Desktop, tablet, dan ponselLayar yang didukung
Paket…
Ukuran kode…
Hemat baterai30 fps, diam saat tidak bergerak
Berhenti saat tersembunyiDi luar layar atau tab lain
Kurangi gerakanTenang bagi yang memintanya
Dicek di setiap perubahan
Pengecekan tipeTypeScript strict
Lint dan formatESLint · Prettier
Tes dan buildTangkapan layar terang dan gelap
Audit keamananTanpa advisori tinggi atau kritis
Usia paketSetiap versi sudah publik 7+ hari
CPU saat diamDi bawah setengah core saat diam, ≤ 30 fps
Kode
Ada yang janggal dengan template ini? Kirim masukan ›
camper-duskHTML
index.htmlpageThe page and all its text, one marked block per section.
theme.cssthemeThe colors and fonts in one place.
send.jsformThe one function the form calls: plug in your form endpoint here.
sectionssectionsOne file per page section.
dates.csssectionThe 2027 departures under a sunset: one row per date with its free vans drawn lit, the price and a way to ask about it.
footer.csssectionThe end of the road: night-black ridges against the starry page sky, the van parked for the night, then the sign-up form, links and the small print.
footer.jssectionThe footer's newsletter sign-up: checks the email, sends it with send.js, then thanks the person by address. A failed send keeps what they typed.
gallery.csssectionLast season's trip as a masonry wall of drawn snapshots, each with its caption, arriving one after another as you scroll.
hero.csssectionThe first screen: misty golden mountains drawn in layers, a lone hiker on the rock, and the giant headline on the dark ground beneath.
hero.jssectionThe hero's mountains: as you scroll, each layer slides at its own speed (its data-lag), the far ones slowest. Reduced motion: still.
nav.csssectionThe top bar: stays at the top while you scroll, folds its links into a menu on narrow screens, and carries the trip's road along its bottom.
nav.jssectionThe top bar: the menu on narrow screens (opens, closes, closes on Escape and when a link in it is picked), and the tiny van that drives the bar's road as you scroll.
places.csssectionThe destinations: a ring of arched cards with the centre one raised, and its arrows, dots and pause button.
places.jssectionThe ring of places: moves on by itself every few seconds while on screen (the pause button stops it), and arrows, dots or a swipe move it by hand. Reduced motion: it never moves by itself.
route.csssectionThe route, driven by scrolling: the map holds still while a camper van drives from Lisbon to Granada, each stop lighting up as it arrives, with the stop it reached in a card beside it.
route.jssectionThe route drive: as you scroll, a camper van drives the road on the visible map, lighting each pin as it arrives and showing that stop in the card. Reduced motion: the road driven, every pin lit and the van parked at the last stop.
story.csssectionThe trip, the route and the vans: text beside a rounded window onto the road, the side swapping each row. Each window opens from a slit as it scrolls into view while the view inside settles.
why.csssectionWhy people come back: four line drawings that draw themselves in, each over a number that counts up, side by side between thin rules.
partspartsWhat several sections share.
count-up.jspartCounts every [data-count-up] number up from zero the first time it scrolls into view (Why). Reduced motion shows it at once.
motion.jspartThe motion helpers the other scripts share, as the page's one global: window.camperDusk.
page.csspartWhat every section shares: the reset, the page column, section titles and heads, the three link styles, the focus ring and how an element arrives on scroll.
reveal.jspartHolds back every [data-reveal] element below the fold until it scrolls into view; each one's CSS says how it arrives.
sky.csspartThe page sky behind every section: it stays on screen while the page scrolls past, with the stars and moon of the night layer.
sky.jspartThe page sky: cross-fades day to sunset to night as you scroll down, and raises the moon by the footer. Reduced motion: the night sky from the start (sky.css).
index.html
The page and all its text, one marked block per section.
Memuat…
Cocok untuk
Tour operators, van rentals and guided road trips that want a full website: the trip, places, route, dates and a newsletter.
Cara kerjanya
Scrolling drives a van along the dashed route and lights each stop, while the sky turns to sunset and then stars by the footer.
Cara memakai
Buka index.html, atau taruh folder di server statis mana pun. Teksnya ada di index.html, warna dan font di theme.css, fungsi kirim formulir di send.js. Bagian Plain HTML di README.md berisi sisanya.