Skip to content
Cards

ScratchCard

A printed card with a silver foil panel. Drag to scratch it off with a coin while flecks fall away; past the threshold the rest clears. Enter scratches it for you.

Download
  • React
  • Tailwind CSS v4
  • motion

Props

NameTypeDefaultWhat it does
prizestring—What sits under the foil.
notestring—Small line under the prize.
titlestring"Lucky Seven"Name printed on the card.
serialstring"No. 0047291"Printed number at the top.
thresholdnumber0.55Share of foil to clear before the rest falls away, 0 to 1.
colorstring"#0f766e"Printed card colour.
onReveal() => void—Runs when the prize shows.
classNamestring""Size. Everything inside scales with the width.