Day Night Slider: a One-Screen Website That Glides from Day to Night
- Lab Skill
- v0.3.2
- Web design
A one-screen website where scrolling turns one place from day to night: SandBase generates a day picture, its night version and a locked-off time-lapse between them. The clip fills the window and is painted on a canvas, so the wheel, a swipe or the arrow keys glide it through pages that change in place: chapters by the hour, a regular's quote, a menu with prices and a visit page, with labels on the shop signs and a running clock.
範例 · 2

在沙箱框架中執行,無法存取此頁面。
線上執行
在 SandBase sandbox 中執行,並在 Lab 中查看結果。
在 Lab 中開啟 ↗您可獲得什麼
Bring a building or street corner to show (or your own picture), your brand, copy, links and language. The Skill returns a static one-screen site (index.html) with its runtime, fonts and the analysed clip, and colours taken from the picture.
運作方式
- 01
Write site.json and preview free
Day Night Slider asks for the subject, brand, copy, links and language, en or zh-CN, and writes site.json. node scripts/sample.mjs corner-bakery --site site.json --out preview, then node scripts/serve.mjs preview, shows the page for free with a ready-made clip. It needs Node 18 and ffmpeg, plus the sandbase CLI or SANDBASE_API_KEY for generation only.
- 02
Generate and analyse the time-lapse
node scripts/generate.mjs --subject "a small ramen shop with red paper lanterns" prints the plan and estimate, and --confirm-real spends. SandBase gpt-image-2 makes the day picture, nano banana 2.1 edits it to night and Seedance 2.0 mini makes a 6-second locked-off clip. analyze.mjs builds a progress to frame table and refuses clips with cuts, too little change or a not_darker ending.
- 03
Check the clip sheet and site
Look at run/clip-sheet.jpg; exit code 2 means the clip was generated but refused, with the reason printed. build-web.mjs writes run/site/ with index.html, section.html, scrub-video.js, site.js, media and fonts. Scroll through all seven pages and confirm each settles on its stop, the clock runs from 07:00 to 22:30 and the night end is clearly darker.
常見問題
What does Day Night Slider build?
Day Night Slider builds a one-screen website where one building turns from day to night as visitors scroll. The page does not scroll; the wheel, touch or arrow keys move through seven pages, the corner, morning, golden hour, a quote, evening, the menu and the visit. Labels appear on the shop signs and a clock runs with the hour.
How is a new Day Night Slider clip billed?
Day Night Slider bills generate.mjs to your SandBase account: gpt-image-2 for the day picture, nano banana 2.1 for the night edit and Seedance 2.0 mini for the clip. It prints the plan and estimate first, spends only with --confirm-real, and --budget-usd caps it. Re-running resumes without resubmitting a paid run, and the agent states the cost before each retry. Rates are at https://www.sandbase.ai/pricing.
Can I use my own clip with Day Night Slider?
Yes. Day Night Slider's analyze.mjs measures your own locked-off clip for free, and build-web.mjs builds the page from it. You can also pass your own picture with --image to skip the image step. A local file goes through sandbase upload, which makes it public, so the agent asks first.
Why does Day Night Slider reject some clips?
Day Night Slider refuses clips with cuts or too little change, and clips whose last frame is not clearly darker than the first. Anything that moves on its own, such as people, cars, animals, water or trees in wind, breaks the time-lapse. Describe one still building and name lights that can come on.
How does Day Night Slider keep the scroll smooth?
Day Night Slider maps the slider to accumulated picture change, so the sunset does not rush past. scrub-video.js reads the clip once into compressed frames and paints the current one on a canvas, blending the two nearest while it moves. Headless checks measured about 60 repaints a second with no frame over 34 ms.
What are the limits of Day Night Slider?
Day Night Slider is a one-screen launch page, not a site for long articles. The video model renders 720p, so the picture is soft on very wide screens, and the scrub clip is 2.5 to 5.5 MB. Bundled fonts, Epilogue Black and DM Sans, cover Latin only, so Chinese uses the system bold sans.
更多 Skills
所有 Web design Skills →
Baked 3D Story Site
A three-page 3D story site with baked light, scroll stops that loop and a shader cut between pages, in one offline file.

UI Finishes
Metal, jewel, halo, roll, fill, offset and ring buttons, media cards, glass and textures, each checked in rest, hover, focus and pressed for real contrast.

Headline Motion
Headlines, labels and numbers that rise, decode, type, rotate, count and draw themselves without moving the layout, measured in a real browser.

Scroll Chapters
Long pages told chapter by chapter: a pinned stage, sliding panels, a text crawl, lit paragraphs, stacking cards and drifting columns, checked in a real browser for dead scroll.

Scroll 3D Product Site
A complete product website where scroll turns, opens and takes apart a live 3D model, with every video and image rendered from that model, in one offline file.

Landing Page System
A complete single-file landing page with a conversion structure and a shared visual system, checked by a rendered-page audit before delivery.
