vibran

Scratch card

Also called: scratch to reveal

A card covered by a silver layer you scratch off with the mouse or finger to reveal the coupon underneath. Past a share of scratching, the rest reveals itself. Keyboard users get a Reveal button.

Preview of Scratch card running live
Copy the promptAdjust colors and speed

When to use it

Good for discount coupons, gifts, giveaways, store promotions and email campaigns. The content sits under the layer, so it is not for real secrets: the text is in the HTML. Use the "revelar" event to release the coupon, and data-limite to decide how much has to be scratched.

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 data-efeito="cartao-raspadinha" style="width:320px;height:180px"><strong>15% de desconto</strong><span>Código SERRA15</span></div>

More cards effects

All 27 cards effects →