Hover Alt Reveal: a Hero Where the Pointer Paints a Second Version of the Picture
- Lab 스킬
- v0.2.1
- Web design
Build a hero page where the pointer drags a liquid trail that shows another version of the same picture, such as a porcelain cat turning to black glass or a white sneaker covered in graffiti, and the trail fades back. SandBase generates the picture and its edit, the Skill lines them up by their outlines, and WebGL draws the trail with a noisy edge, a coloured rim and a slight bend. 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 subject and what its second version changes (or your own picture), your brand, copy, links and language. The Skill returns a full landing page (index.html), a section to paste into an existing site, both aligned pictures and colours taken from them.
작동 방식
- 01
Describe the picture pair
Hover Alt Reveal asks for the subject, what the second version changes in material, colour or dressing but not pose or framing, plus brand, copy, links, language and budget. It writes site.json, where layout is bottom or top and effect sets brush, stretch, fade, edge, rim, refract and focus. node scripts/sample.mjs kiln-cat --site site.json --out preview builds a free preview.
- 02
Generate the edited twin
After you accept the estimate, node scripts/generate.mjs --subject "<picture>" --change "<what changes>" --site site.json --out run runs again with --confirm-real. It calls gpt-image-2 through the logged-in sandbase CLI or SANDBASE_API_KEY for the picture and its edit, then lines the edit up by outline. Node.js 18+ with ffmpeg and ffprobe is required; no npm dependencies.
- 03
Sweep and compare
Compare run/base.png and run/alt.png for the same outline, then node scripts/serve.mjs run/site and sweep the pointer over the subject. WebGL cuts the trail into a liquid edge with a coloured rim and a slight bend, and the mask fades back. The kiln-cat example needed a 0 px shift and showed 8.7% of the frame after one sweep. Hand over run/site/.
FAQ
Is Hover Alt Reveal billed on SandBase?
Yes, Hover Alt Reveal is billed when generating. It calls gpt-image-2 through SandBase for the picture and its edit, billed to your SandBase account; with --image only the edit is made. The agent quotes the estimate first, nothing is spent without --confirm-real, and --budget-usd sets a cap. results/runs.json lists every paid call. Rates are at https://www.sandbase.ai/pricing.
What if the Hover Alt Reveal edit moves the subject?
Hover Alt Reveal's builder corrects a shift of up to 10 px at 320 px wide, but not scaling or rotation. When it has to shift the second picture by more than 2% of the width it warns you, because the edit moved the subject. Regenerate the edit in that case.
Can Hover Alt Reveal use my own pictures?
Yes. Hover Alt Reveal builds for free from any two pictures of the same shape with build-web.mjs --base and --alt, or edits your own first picture with generate.mjs --image. A local file sent with --image is uploaded publicly through sandbase upload, so ask before uploading anything private.
Does Hover Alt Reveal work without WebGL?
Yes, Hover Alt Reveal works without WebGL, with a softer edge. It falls back to Canvas 2D, drawing the second picture through the mask without the rim or the bend. On phones the trail follows a dragging finger until the browser starts scrolling, and a tap paints one blob.
What files does Hover Alt Reveal produce?
Hover Alt Reveal writes index.html, section.html, hover-reveal.js with no dependencies, hover-reveal.css with hr- prefixed classes, landing.js, a fonts folder with Geist, Geist Mono and Instrument Serif, media/base.jpg and media/alt.jpg at 1920 px, and site.resolved.json. --embed writes one self-contained file with both languages.
더 많은 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.
