Glass Cube Hero
Campaign hero built around a wobbling glass cube with a small glowing world inside: a spiral galaxy, a snow scene with a lantern, or rising gold embers.
When to use it
- Launch or night drop hero for a premium product (fragrance, jewellery, limited edition) where the first screen should feel precious and invite a touch
- Seasonal campaign heroes: snow for winter and holiday gift sets, gold embers for Lunar New Year or an anniversary sale
- A brand page that wants one signature 3D object without shipping three.js or a video file
Watch out
- The shader is heavy for a background: use one cube per page and keep renderScale at 1 or below; it already drops to 0.5 when frames get slow
- Keep the key message and CTA in the copy, not inside the cube: the inside is aria-hidden decoration
- warm should stay a warm light colour (it lights the bevel and the inside); a dark or cold warm makes the glass look dull
- Pass a poster image for the first paint and for browsers without WebGL
Let your agent add it
One copy holds the install command, when to use it, the props and the design rules. Paste it into Claude Code, Cursor or Codex.
This is a Pro block
One license unlocks every Pro block, now and in the future.
One-time $129 with a year of updates, or $19 a month. Use it in unlimited personal and client projects; installed blocks stay yours.
Install with your license
- 1. Add the SunUI Pro registry to
components.json.components.json{ "registries": { "@sunui-pro": { "url": "https://sunui.synvize.com/r/pro/{name}.json", "headers": { "Authorization": "Bearer ${SUNUI_LICENSE_KEY}" } } } } - 2. Put your license key in
.env.local.$ SUNUI_LICENSE_KEY=your-license-key - 3. Install the block.
$ npx shadcn@latest add @sunui-pro/glass-cube-hero
Similar blocks
- Pro
- Pro
- Pro
- Pro
- Pro





