vibran

Glass cube

Portuguese name: Cubo de vidro

A glass cube with refraction and color dispersion. It spins on its own and follows the mouse.

Preview of Glass cube running live
Copy the promptAdjust colors and speed

When to use it

A showcase piece for design studios, tech products, jewelers or brands that talk about transparency. It's WebGL and very eye-catching, so keep surrounding text short. Lower data-qualidade on phones and set data-cores so the reflection carries the brand tone.

How to add it to your site

  1. Copy the prompt in the gallery. It comes with the effect's name and the full code. The prompt text is written in Portuguese, and AI builders handle that fine.
  2. Paste it into your AI: Lovable, Claude, Cursor, Bolt or v0.
  3. Done: the AI adds the effect to your project, just like you saw it here.

Use it in HTML

The effect is plain JavaScript, no library. Just put the data-efeito attribute on the element:

<section data-efeito="cubo-vidro">...</section>

More backgrounds effects

All 43 backgrounds effects →