A metallic foil coating rendered on canvas with diagonal sheen streaks and noise speckle. Scratch with your cursor or finger to erode the coating - soft radial dabs create a natural edge. A tiny scratch sound plays via Web Audio synthesis. When enough is cleared (55% by default), the coating fades away with an eased animation and a chime plays.
scratch-card-preview
Loading preview...
Why it helps: A scratch card taps into the same impulse as a real lottery ticket - the physical act of revealing something hidden is inherently satisfying. The scratch sound and percentage counter add to the tactile feel.
Also good to know:
// Loading source...
import { ScratchCard } from "@/components/live/ScratchCard";
<ScratchCard
coatingLabel="Scratch here"
brushSize={34}
clearThreshold={0.65}
sound
/>Content revealed when scratched away.
Label centered on the coating.
Scratch brush diameter in px.
Fraction of area to auto-reveal (0-1).
Primary metallic coating color.
Secondary coating color for gradient.
Play scratch and reveal sounds.
Auto-reveal when threshold is met.
Additional CSS classes.
You won a portfolio review
import { ScratchCard } from "@/components/live/ScratchCard";
<ScratchCard
coatingLabel="Scratch here"
brushSize={34}
clearThreshold={0.65}
sound
/>