vibran

Glass text

Also called: refraction text

The letters turn into glass: the colorful background behind shows blurred and warped inside them, with a light edge and a highlight that follows the mouse.

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

When to use it

For tech, beverage, fashion and event covers with one very heavy word over a moving, colorful background (video, animated gradient, shapes). Over a plain static background the glass doesn't show. Adjust data-desfoque for more or less frost and data-refracao to bend the background more; use 0 to blur only. Works in Chrome and Edge; browsers without backdrop-filter fall back to translucent text.

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:

<h1 data-efeito="texto-vidro" data-refracao="26">Seu título</h1>

More text effects

All 27 text effects →