Depth Carousel: Wide Panels on a Curved 3D Arc You Drag Through
- Lab Skill
- v0.2.0
- Web design
Build a full-screen hero carousel where wide picture panels stand on a curved 3D arc in front of a full-bleed backdrop: the current panel faces you, its neighbours turn away into depth, and drag, swipe, trackpad, arrow keys, buttons or thumbnails move it with momentum while a big title block changes with each panel. SandBase draws six wide pictures as one contact sheet that the Skill cuts apart, or you bring your own folder. CSS 3D only. The hero is followed by a full landing page: chapter titles, an intro, a product console drawn in HTML, feature cards, specs, stats, a quote, a call to action and a footer, with a moving glow and a floating section pill.
示例 · 2

在沙盒化的框架中运行,无法访问此页面。
在线运行
在 SandBase sandbox 中运行,并在 Lab 中查看结果。
在 Lab 中打开 ↗你将获得什么
Bring what the panels show (or your own folder of wide pictures), a tag, kicker, title and line per panel, your brand, links, palette and language. The Skill returns a full landing page (index.html), a section to paste into an existing site, the runtime script and stylesheet, the cut-apart pictures and the bundled open fonts.
工作原理
- 01
Write site.json and preview
Depth Carousel asks for what the panels show, brand, links, and per panel a tag, kicker, title, line of text and alt text, then writes site.json with copy.items in picture order. arc.spread, depth, turn and autoMs shape the arc. node scripts/sample.mjs farside-base --site site.json --out preview builds a free preview. Node 18 and ffmpeg are needed, with no npm dependencies.
- 02
Generate a sheet or use photos
node scripts/generate.mjs --theme with the six subjects calls SandBase gpt-image-2 for one 2 by 3 contact sheet after the estimate is accepted and --confirm-real is passed. The cutter splits it at white gutters into panels about 1.58:1, 1600 px wide by default. With your own pictures, build-web.mjs --photos takes a folder of 3 to 12 wide images.
- 03
Serve and drive the arc
node scripts/serve.mjs run/site opens a local preview. Drag and release to see the arc keep momentum and settle on the nearest panel, use the arrows, round buttons and thumbnails, and wait for the automatic advance. The backdrop should crossfade and the title block change each time. Output includes index.html, section.html, depth-carousel.js, depth-carousel.css, landing.js, fonts and panels.
常见问题
What does Depth Carousel build?
Depth Carousel builds a full-screen hero where wide picture panels stand on a curved 3D arc in front of a full-bleed backdrop. The current panel faces you while its neighbours turn away and sink into depth. A big title block with a tag, kicker, condensed title, text line and button follows the current panel, and a full landing page follows the hero.
Is Depth Carousel image generation paid?
Yes, only for generate.mjs. Depth Carousel calls the SandBase gpt-image-2 model for each contact sheet and bills your SandBase account through the sandbase CLI login or SANDBASE_API_KEY. The agent shows the estimate first, nothing is spent without --confirm-real, and --budget-usd caps the run. Samples, photo builds and serve are free. Pricing is at https://www.sandbase.ai/pricing.
How do visitors move the Depth Carousel?
Depth Carousel follows a dragging hand or finger exactly and keeps a little of the flick's speed on release. Horizontal trackpad scrolling, the arrow keys, the round buttons and the thumbnails step it. Vertical mouse-wheel scrolling scrolls the page instead. The default advance happens after nine seconds without input, and autoMs set to 0 turns it off.
Does Depth Carousel use WebGL?
No. Depth Carousel uses CSS 3D only. depth-carousel.js has no dependencies, and DepthCarousel.mount(el, options) returns inspect, go and destroy for embedding. Its CSS classes are prefixed dc-.
Which sample sets come with Depth Carousel?
Depth Carousel ships farside-base, six lunar base matte paintings on a black page, and alpine-huts, six mountain hut photographs for an alpine hut network. sample.mjs downloads either, checks its SHA-256 and builds a page in English and Chinese.
What are the limits of Depth Carousel?
Depth Carousel needs contact sheets with gutters at least 96 percent near-white. Pictures that are not about 1.58:1 are cropped to fit. It is not for video, 3D models or photos of real people, and with prefers-reduced-motion the arc jumps to the chosen panel and never advances on its own.
更多 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.
