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.

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
- 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:
<div data-efeito="cartao-raspadinha" style="width:320px;height:180px"><strong>15% de desconto</strong><span>Código SERRA15</span></div>
More cards effects
- Animated borderBorda girando
- 3D ring carouselCarrossel 3D
- Spatial carouselvision glass carousel
- Spotlight cardCartão com brilho
- Page curl cardpeel corner
- Profile cardreactive avatar / counter card
- Reactive dot grid card, interactive dot matrix hoverCartão de pontos reativos
- Product card with color swatchesspin