Photo Sphere Gallery: a Globe of Photos You Drag to Spin, Scatter and Open
- Lab Skill
- v0.2.0
- Web design
Build a portfolio hero where dozens of photos are tiled over a globe you can drag to spin. It coasts after a flick, leans toward the pointer and keeps a slow turn; one button bursts the tiles into a loose wall and back, and a click opens a photo full size. SandBase generates the photos as 4x4 contact sheets that the Skill cuts apart, or you bring your own folder. CSS 3D only, no WebGL. 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 a theme for the photos (or your own folder of photos), your brand, copy, links 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 photos and the bundled open fonts.
仕組み
- 01
Plan the photos and page
Photo Sphere Gallery asks what the photos show, or takes the user's own folder, plus brand, copy, links, palette and language, then plans the landing page after the hero. site.json carries a caption per photo in each language and a sphere block: tiles from 12 to 80, radius, spin, friction and tilt. node scripts/sample.mjs salt-light --site site.json --out preview builds a free preview.
- 02
Generate sheets or bring photos
Once the user accepts the estimate, node scripts/generate.mjs --theme "<16 subjects>" --sheets 2 --site site.json --out run, then the same command with --confirm-real, makes 4 by 4 contact sheets through SandBase and cuts them along white gutters. Own photos use build-web.mjs --photos <dir>. It needs Node 18+, ffmpeg and ffprobe; photos come out as 720 px wide JPEGs.
- 03
Preview and hand over
node scripts/serve.mjs run/site serves the result: drag to spin, press Scatter and click a photo. The folder holds index.html, section.html, photo-sphere.js, photo-sphere.css, landing.js, fonts and photos. Release 0.2.0 placed 32 photos on 64 tiles with 10 page sections and passed 15 checks, including flick-coasts, scatter and back, click-opens, Esc to close and a 390 px phone drag.
FAQ
What does Photo Sphere Gallery build?
Photo Sphere Gallery builds a portfolio hero where photos are tiled over a globe you drag to spin. It coasts, leans toward the pointer and keeps a slow turn, Scatter bursts the tiles into a loose wall, and a click opens a photo full size with its caption. A landing page with console, features, stats, quote and call to action follows.
Does Photo Sphere Gallery charge for photos?
Only when it generates them. Photo Sphere Gallery calls gpt-image-2 through the logged-in sandbase CLI or SANDBASE_API_KEY to make contact sheets, and that usage is billed to your SandBase account. It shows an estimate per sheet first, needs --confirm-real to spend and accepts --budget-usd as a cap; rates are at https://www.sandbase.ai/pricing. Samples and own photos are free.
Can I use my own photos in Photo Sphere Gallery?
Yes. Photo Sphere Gallery builds from a folder with build-web.mjs --photos <dir>, or from your own contact sheets with --grid, which must have white gutters. Tiles are 3:2, so other shapes are cropped, and sets over 80 photos cannot all sit on the globe at once.
Does Photo Sphere Gallery need WebGL?
No. Photo Sphere Gallery uses CSS 3D only. Each photo is a tile facing outward from a Fibonacci-spaced point on a sphere, and photos repeat to fill the tile count. PhotoSphere.mount(el, options) returns inspect, setMode, open, close and destroy.
What samples come with Photo Sphere Gallery?
Photo Sphere Gallery ships salt-light, 32 coastal photos on a light travel photographer page, and small-batch, 32 food and ceramics photos on a dark food studio page. Both were made from two gpt-image-2 contact sheets and come in English and Chinese. results/runs.json lists every paid call made for the Skill.
What can't Photo Sphere Gallery do?
Photo Sphere Gallery is not for video, 3D models or photos of real people. Its cutter needs gutter rows and columns that are at least 96 percent near-white, so sheets without clean gutters will not split. Never put a key in a command, file or prompt.
その他の 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.
