Hero · Hero section

Velum Glass cryptex hero you can actually solve

A frosted-glass cryptex in live 3D: turn the rings, solve the riddle and it unlocks a code.

Open live demo ↗ Download .md
velum.demo
Velum at desktop width
Desktop · 1440
Velum at phone width
Phone · 390

What's in the prompt

  • A full written spec: layout, tokens, every animation with its numbers, responsive rules
  • The complete working code as the reference implementation
  • Accessibility, reduced motion and fallbacks already handled
  • A “Make it yours” checklist so your site looks like nobody else’s
Type
Hero
Built with
HTML, CSS, JS · three.js 0.170.0
Prompt size
78 KB
Tags
three.js glass, interactive hero, puzzle, gamification
Updated
2026-11-26

Use it in three steps

  1. Copy the prompt with the button above.
  2. Paste it into your AI (Claude, Claude Code, ChatGPT, Cursor…) and add your edits.
  3. Launch the single index.html anywhere: Cloudflare Pages, Netlify, GitHub Pages.

About the Velum design

Velum is a one-screen hero for a fictional maker of frosted glass puzzle boxes, built around a puzzle the visitor can actually solve. A three.js cryptex of five frosted aqua glass rings stands in the middle, each ring engraved with eight glowing glyphs and held between knurled brass caps. Behind it a lantern orb and a large italic wordmark are painted into the 3D backdrop so the glass refracts them. The palette is deep blue-black with aqua for the idle state and amber for the unlocked state, with Instrument Serif for the headline and riddle and Manrope for the interface.

A preloader draws the glyphs in a row while a counter runs. The page then shows the headline and buy block on the left, the cryptex in the centre and a riddle panel on the right that names five glyphs. Visitors drag, scroll or arrow-key each ring, and it settles into place with a small spring overshoot; optional sound adds a glass tick. Lining up moon, star, sea, mountain and sun opens the cryptex: the rings part, the caps slide apart and amber light pours out of the seams. The panel then reveals a 15% code that is applied to the bag, and the hero price drops.

Good for

How Velum is built

Advanced three.js 0.170 from unpkg via import map, MeshPhysicalMaterial transmission glass, procedural geometry, Web Audio ticks

Images, video and 3D

Only three 400×400 product tiles for the reveal (tessera, orrery and hexad WebP, about 35 KB together); the cryptex, glyphs, orb and wordmark are generated in code. Replace the tiles with your own product photos or AI-generated images in one consistent light and crop.

Build it with Claude

Ask Claude for the single index.html and play the puzzle in the preview; if WebGL is blocked there, the playable SVG cryptex uses the same controls. Use Show me to confirm the unlock fires, then check the bag shows the −15% line and the hero price drops from €285 to €242.

Claude guide →

Build it with Claude Code

Make a folder with index.html and assets/ for the three tiles, and serve it with npx serve so the unpkg module import and images load like production. Ask Claude Code to test ?nogl for the SVG version, step each ring with the arrow keys to confirm aria-valuetext names the glyph, and check the stage refits when the reveal replaces the riddle panel.

Claude Code guide →

Build it with ChatGPT

Ask ChatGPT to write it in parts: the ring, glyph and cap geometry, the backdrop shader, the spring and input logic, and the panel, bag and SVG fallback, in canvas if available. Follow up on the hit boxes: they must be recomputed every frame from each ring's projected silhouette, or drags and focus rings will not line up with the 3D rings.

ChatGPT guide →

If it doesn’t work

Questions about Velum

What is the answer to the Velum cryptex?

The riddle names five glyphs in order from top to bottom: moon, star, sea, mountain and sun. Line those up and the cryptex opens; the Show me button turns each ring to its answer if a visitor gets stuck.

Does the puzzle work without WebGL?

Yes. With no WebGL2, a failed three.js import, ?nogl or a lost context, a playable SVG cryptex appears in the same stage with the same controls, state and reveal.

Make it yours

This prompt rebuilds one exact design. If everyone ships it unchanged, the sites will look alike. Before you paste it, change these lines so the result is yours. Each change is one edit to the prompt; the structure and the interactions stay intact.

  1. Brand and offer. Swap "Velum", the Meridian Cryptex, €285 and VELUM15 for your own product, price and reward (a free sample, early access, a hidden menu item). Keep one product, one price and one code so the buy block and the reveal stay balanced.
  2. The puzzle object. The cryptex is the signature. Keep five rings on springs and the reveal, but change the object: brass combination-lock wheels, a stack of ceramic tea tins, a wooden ring puzzle, a dial safe seen front-on. Change the ring material (wood = roughness .6 and no transmission; ceramic = clearcoat glaze) and the caps to match.
  3. The glyphs and the riddle. Replace the eight glyph paths with eight from your world (tea leaves, notes, planets, letters of your brand) and rewrite the riddle so it names your five answers in order. Keep paths simple, stroked, in a 100-unit box.
  4. Palette. Replace ink, aqua and amber and the orb's three colours. Keep muted text ≥ 4.5:1 on the ground colour and keep one warm "unlocked" colour distinct from the idle colour.
  5. Type pairing. Swap Instrument Serif + Manrope for another display serif or italic face with a plain sans; the wordmark behind the glass should use the display face.
  6. Backdrop. Replace the lantern orb with your own light source: a low sun band, a window of light, a neon ring. It must stay behind the object so the glass has something to refract.
  7. Images. Replace the three collection tiles with your own product photos, or generate them in one consistent light, crop and background, at 400×400 webp.
  8. Copy. Rewrite the headline, lede and reveal in your own voice, and say plainly what the reward is.

Tell your AI: "Build exactly as specified, but with these changes: …", then list your edits.

More designs