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.

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
- 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.
- Paste it into your AI: Lovable, Claude, Cursor, Bolt or v0.
- 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
- Text shimmerBrilho no texto
- Number tickerContador animado
- Physics falling textgravity letters
- Wave textsplit text
- Text scrambleLetras embaralhando
- Scatter textrepel letters
- Line mask reveal on scrollLinhas que sobem com a rolagem
- Scroll velocity marqueekinetic headline ticker