Sand AISand AI MAGI-2MAGI-2 agora está na SandBase: vídeo em 1080p com áudio nativoExperimente agora

Letter Swap Hover: a Giant Word Whose Letters Turn 3D Under the Pointer

Build a hero with a giant word set in type where each letter turns into its own 3D picture while the pointer is on it (inflated balloon plastic, chunky knit, iridescent glass, chrome, jelly, hammered copper), popping in on a springy scale and tilting toward the pointer, then swapping back a moment after it leaves. A click pins a letter, and after a pause the letters play through on their own. SandBase draws the letters as one sheet that the Skill cuts apart, or you bring your own transparent PNGs. 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.

Exemplos · 2

Toy design studio hero where each letter of DREAM turns 3D under the pointer
Abrir em nova aba

Executa em um frame isolado, sem acesso a esta página.

Executar online

Execute em um sandbox do SandBase e veja seus resultados no Lab.

Abrir no Lab ↗

O que você recebe

Bring the word (2 to 10 capital letters), a material per letter, your brand, a line of copy, a button, 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-out 3D letters and the bundled open fonts.

Como funciona

  1. 01

    Plan the word and page

    Letter Swap Hover asks for a word of 2 to 10 capital letters, a material per letter, brand, one line of copy, links, button, palette and language, then plans the landing page after the hero. All of it goes into site.json, including swap.holdMs, swap.idleMs and swap.playMs. node scripts/sample.mjs dream-studio --site site.json --out preview builds a preview from a ready-made sheet without generating anything.

  2. 02

    Generate or supply the letters

    With the user's approval of the estimate, node scripts/generate.mjs --theme "<each letter and its material>" --site site.json --out run, rerun with --confirm-real, creates one sheet of 3D letters on a flat key colour through SandBase and cuts it apart. Own pictures skip that: build-web.mjs --letters <dir> takes transparent PNGs. It needs Node 18+, ffmpeg and ffprobe, and no npm dependencies.

  3. 03

    Check the swap and hand over

    The output folder holds index.html, section.html, letter-swap.js, letter-swap.css, landing.js, Geist, Geist Mono and Instrument Serif fonts and letters/ PNGs. node scripts/serve.mjs run/site previews it: sweep the pointer across the word, click to pin a letter and wait for the play-through. Release 0.1.0 passed 13 checks, including swap-back, idle play, both languages and a 390 px phone tap.

FAQ

What does Letter Swap Hover build?

Letter Swap Hover builds a landing page whose hero is a giant word in heavy type, where each letter turns into its own 3D picture under the pointer. The page continues with chapter titles, an intro, a letter gallery, a product console drawn in HTML, feature cards, stats, a quote, a call to action and a footer.

Does Letter Swap Hover cost anything to generate letters?

Yes, only when you generate new letters. Letter Swap Hover calls the gpt-image-2 model through the logged-in sandbase CLI or SANDBASE_API_KEY for one 2k sheet, billed to your SandBase account. The user accepts an estimate first, generation needs --confirm-real, and --budget-usd caps spending. Samples, own PNGs and previews are free; rates are at https://www.sandbase.ai/pricing.

Can I use my own pictures in Letter Swap Hover?

Yes. Letter Swap Hover builds from a folder of transparent PNGs, one per letter in order, with build-web.mjs --letters <dir>, or from your own sheet of letters on a flat key colour with --sheet. Neither path calls a model.

How does the Letter Swap Hover swap timing work?

Letter Swap Hover keeps a letter 3D for holdMs after the pointer leaves, from 0 to 4000 milliseconds, so a quick sweep lights a trail. After idleMs with no input the letters play through, each shown for playMs, and an idleMs of 0 turns that off. A click or tap pins a letter until the next click.

Does Letter Swap Hover need WebGL?

No. Letter Swap Hover pops each 3D picture in with an overshooting scale and tilts it up to about 10 degrees toward the pointer using plain HTML, CSS and letter-swap.js. LetterSwap.mount(el, options) returns inspect, swap and destroy, and --embed writes one self-contained HTML file with both languages.

What are the limits of Letter Swap Hover?

Letter Swap Hover needs exactly one picture per letter in a row on a flat key colour, pure green by default, and stops if the count differs. Words longer than about eight letters get small on phones. It is not for sentences or photos of real people, and with reduced motion letters only fade and do not play through.