vibran

Liquid glass card

Also called: glass refraction card

A glass card that bends what is behind it like a lens: edges curve and split the colors, and a rim light turns to follow the mouse. You can drag the card over the content.

Preview of Liquid glass card running live
Copy the promptAdjust colors and speed

When to use it

Good for payment, player, notification or pricing cards that sit over photos, video and colorful backgrounds. The refraction only shows with varied content behind it (text, shapes, images). Works in Chrome and Edge; in Safari and Firefox it falls back to plain frosted glass. Use data-refracao for the curve strength and data-dispersao="0" if the split colors bother you.

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:

<div style="position:relative;height:400px">...conteúdo colorido...<div data-efeito="cartao-vidro-liquido" style="position:absolute;inset:0;margin:auto;width:300px;height:180px">Texto do cartão</div></div>

More cards effects

All 27 cards effects →