# 3D Glass Cube Hero

> Drop-in 3D hero for your landing page: a cube of frosted glass that glows from inside, made of eight blocks that turn on their own while the camera circles and zooms. Visitors spin it by drag, pinch, scroll or arrow keys. One React component with a WebGL shader inside: no three.js, no Spline file, no 3D models or images to load. Use it as an interactive 3D hero or background for a SaaS or AI product, a launch or coming-soon page, a portfolio, or a modules and integrations section. Brand it in seconds: eight palettes to try in the demo (Fire, Blue, Violet, Sunset, Ocean, Lavender, Aurora, Ice) or your own colors, glass from frosted to clear (glassmorphism), adjustable glow and shadow. Comes in a light studio and a dark dusk version: pick one or let it follow your site's theme (shadcn/ui, Tailwind CSS); a client component for Next.js. It lowers its resolution when a slow GPU drops frames and stops drawing off screen. Keyboard controls, screen-reader labels and reduced-motion support.

- Author: [Vilqor](https://21st.dev/@vilqor)
- License: mit
- Tags: Background, Hero, WebGL, Shader, 3D
- Live preview: https://21st.dev/@vilqor/components/glass-cube

## Install

```bash
npx shadcn@latest add "https://21st.dev/r/vilqor/glass-cube?api_key=$API_KEY_21ST"
```

Requires a 21st API key (generate one at https://21st.dev/mcp) passed as `API_KEY_21ST`. Free accounts get a limited number of installs per day; unlimited on a paid plan — see https://21st.dev/pricing.

Full component directory: https://21st.dev/llms.txt · More like this: https://21st.dev/community/components/s/background.md
