Skip to content

Latest commit

 

History

History
13 lines (9 loc) · 525 Bytes

README.md

File metadata and controls

13 lines (9 loc) · 525 Bytes

ScratchToReveal

Overview

ScratchToReveal is a custom component that mimics a scratch card effect. Users can scratch off a gradient overlay to reveal hidden content beneath. Once a certain percentage of the surface is scratched, the content is fully revealed with an animation.

Features

  • Scratch effect using touch gestures
  • Gradient overlay for the scratchable area
  • Configurable scratch percentage threshold
  • Smooth scratch strokes with a custom painter
  • Reveal animation once the scratch threshold is met