Scratch to Win
A prize card under metallic foil. Drag to scratch - once enough of the layer clears, the win unlocks with a copyable code. Five looks: rose foil, green lottery, brass coin, indigo strip, navy ticket. Reduced motion gets a one-tap Reveal.
Foil
Warm rose cream in light, deep rose night in dark - scratch once for SCRATCH25.
Loading…
Lottery
Green ticket foil with emerald chrome - same scratch gesture.
Loading…
Coin
Amber brass foil - gold-coin energy under the scratch layer.
Loading…
Strip
Indigo security strip - cool purple-blue foil and CTA.
Loading…
Ticket
Navy + gold VIP ticket - event-stub chrome under gold foil.
Loading…
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| look | "foil" · "lottery" · "coin" · "strip" · "ticket" | "foil" | foil rose · lottery green · coin brass · strip indigo · ticket navy+gold. |
| offer | string | "25% off" | Prize shown under the foil and after reveal. |
| code | string | "SCRATCH25" | Promo code copied by Copy / Claim. |
| revealAt | number | 0.42 | Fraction of foil that must be cleared to auto-reveal (0–1). |
| hint | string | "Scratch the foil to uncover your prize" | Copy shown while the foil is still intact. |
| revealLabel | string | "Reveal prize" | Button label when reduced motion skips the scratch gesture. |
| ctaLabel | string | "Claim your win" | Primary button after the prize is revealed. |
| delayMs | number | 380 | Auto-open delay in milliseconds. |
| position | "fixed" · "absolute" | "absolute" | Use fixed on live sites; absolute inside a relative demo stage. |
| onReveal | () => void | - | Fires when the foil clears or Reveal is pressed. |