Pricing
Get Started
  • Introduction
  • Installation
  • MCP Server
  • Saved
Site
  • Builder (Beta)
  • Pricing
  • Roadmap
  • Affiliates
Browse
  • All Components25 New
Text32
Reveal & Decode11
  • Blur Highlight
  • Cipher Reveal
  • Ghost Type
  • Glyph Lottery
  • Luminous Type
  • Signal Type
  • Smoke Type
  • Staggered Text
  • Text Morph
  • Typographic Wall
  • Vapor Type
Kinetic & 3D11
  • 3D Letter Swap
  • 3D Text Reveal
  • Bending Marquee
  • Mesh Lettering
  • Orbital Type
  • Ribbon Type
  • Rising Ink
  • Speeding Text
  • Text Cube
  • Text Path
  • Wave Lettering
Interactive & Physics10
  • ASCII Ripple
  • Domino Lettering
  • Elastic Lettering
  • Glitch Text
  • Gravity Letters
  • Particle Text
  • Shatter Type
  • Spring Lettering
  • Stipple Type
  • Text Scatter
Backgrounds106
Gradients & Fluids21
  • Aura Blob
  • Aurora Blur
  • Chroma Waves
  • Cloud Atlas
  • Color Loops
  • Glowing Ridges
  • Gradient Bars
  • Gradient Blob
  • Grain Wave
  • Liquid Bars
  • Minimal Ripple
  • Radial Liquid
  • Rubber Fluid
  • Satin Ridges
  • Shader Waves
  • Silk Waves
  • Simple Swirl
  • Spectral Clouds
  • Stipple GradientNew
  • Swirl Blend
  • Watercolor
Light & Beams14
  • Aurora Beam
  • Axial Beam
  • Blurred Rays
  • Chroma Blinds
  • Dappled Light
  • Eclipse
  • Falling Rays
  • Flame Paths
  • Horizon Bloom
  • Light Droplets
  • Neon Reveal
  • Nexus Rays
  • Rolling Blinds
  • Shadow Bars
Lines & Filaments12
  • Concentric Tides
  • Glowing Wave
  • Interference Ribbons
  • Liquid Lines
  • Long Exposure
  • Luminous Filaments
  • Neural Flash
  • Neural Float
  • Rising Lines
  • Spiral Funnel
  • Synaptic Shift
  • Twilight Lines
Dots & Pixels22
  • Blinking Dots
  • Blinking Squares
  • Chroma Current
  • Circuit FlashNew
  • Cursor Wave
  • Dither Wave
  • Dot Shift
  • Dotted WavesNew
  • Glue Dots
  • Grid Rise
  • Halftone Vortex
  • Halftone Wave
  • Hexagonal Vault
  • Mosaic
  • Mosaic Waves
  • Pixel Rain
  • Square Matrix
  • Squares Terminal
  • Squircle Shift
  • Tech Wall
  • Thinking Dots
  • Voxel Arc
Particles & Space11
  • Astral Shell
  • Binary Orbits
  • Contour Tide
  • Fading Stars
  • Glimmer Wrap
  • Grain MassNew
  • Ring Field
  • Rising Particles
  • Rotating Stars
  • Spectral Drape
  • Star Burst
Horizons & Tunnels10
  • Glitter Warp
  • Landscape
  • Lightspeed
  • Neural Tunnel
  • Perspective Grid
  • Ravine
  • Retro Lines
  • Star Swipe
  • Vortex
  • Warp Twister
ASCII & Glyphs9
  • ASCII StreamNew
  • ASCII Tiles
  • Ascii Waves
  • Glyph Ember
  • Glyph Orb
  • Glyph Sonar
  • Glyph Tide
  • Liquid Ascii
  • Terminal Rain
Glass & Chrome7
  • Glass CoinsNew
  • Glass Flow
  • Glass KeysNew
  • Glass Tiles
  • Metallic Swirl
  • Prismatic Slats
  • Spectral TilesNew
Images & Galleries52
Galleries & Carousels33
  • Album Rail
  • Bend Gallery
  • Circle Gallery
  • Circle Stack
  • Circles
  • Concave Carousel
  • Constellation Gallery
  • Contact Sheet
  • Depth Ribbon
  • Dolly Gallery
  • Draggable Grid
  • Elastic Reel
  • Expanding Grid
  • Gradient Carousel
  • Helix Gallery
  • Infinite Gallery
  • Inverted Dome
  • Iris Gallery
  • Lenticular Carousel
  • Liquid CirclesNew
  • Momentum Ring
  • Orbit Reel
  • Parallax Carousel
  • Passage Gallery
  • Prism Carousel
  • Reel Gallery
  • Rotating Cards
  • Scroll Bend
  • Skewed Carousel
  • Spin Shutter
  • Tilted Tiles
  • Tumble Carousel
  • Twisting Gallery
Image Effects14
  • Comparison Slider
  • Depth Image
  • Ember Reveal
  • Glass Reveal
  • Hover Preview
  • Liquid Swap
  • Loupe Image
  • Particle Image
  • Particle Morph
  • Pixel Reveal
  • Pixel Sculpt
  • Pixelate Hover
  • Pond Image
  • Shader Reveal
Scroll Stories5
  • Frame Scrub
  • Scroll Mask
  • Scroll Portal
  • Scroll Stack
  • Tile Reveal
Interface30
Cards & Widgets15
  • Animated ListUpdated
  • Arc ListNew
  • Card Spread
  • Chroma Card
  • Click Stack
  • Credit Card
  • Depth Card
  • Frame Border
  • Modal Cards
  • Parallax Cards
  • Parallax Pills
  • Preloader
  • Shader Card
  • SignatureNew
  • Warped Card
Product Mockups8
  • Browser WindowNew
  • Center Flow
  • Code MorphNew
  • Device
  • Magic Transform
  • PipelineNew
  • Spin ViewerNew
  • Terminal ReplayNew
Data & Media7
  • Globe
  • Instrument DialNew
  • Particle ChartNew
  • Signal MapNew
  • Simple Graph
  • Story PlayerNew
  • Waveform PlayerNew
3D & Tactile16
Orbs & Shapes9
  • Agentic Ball
  • AI Blob
  • Black Hole
  • Chrome Orbit
  • Fog Sphere
  • Photon Knot
  • Portal
  • Specter Orb
  • Wireframe Ball
Tactile & Physics7
  • Elastic Sticker
  • KeycapsNew
  • Page Flip
  • Pin ScreenNew
  • Receipt PrinterNew
  • Scratch CardNew
  • Tumble Wall
Cursors19
Custom Cursors7
  • Custom Cursor
  • Drafting Cursor
  • Glass Cursor
  • Gyroscope Cursor
  • Label Orbit
  • Smooth Cursor
  • User Cursor
Cursor Trails12
  • Arc Cursor
  • Ascii Cursor
  • Celebration Cursor
  • Chroma Halo
  • Dither Cursor
  • Glyph Stream
  • Pigment Trail
  • Pixel Magnet
  • Ribbon Trail
  • Snapshot Trail
  • Stardust Cursor
  • Tessera Trail
  1. Docs
  2. Components
  3. 3D & Tactile
  4. Tactile & Physics
  5. Scratch Card

Animated components, blocks, and templates for React. Pay once, ship stunning pages forever.

pro@reactbits.dev

Site

HomeBuilder (Beta)PricingTestimonialsFAQsRoadmapChangelogFree Components

Docs

IntroductionInstallationMCP ServerComponentsBlocksTemplates

Resources

AboutUse casesComparisonsAlternativesFor AI agents

Legal & Account

LoginAffiliateLicensePrivacyContact

© 2026 pro.reactbits.dev. All rights reserved.

Scratch Card

A metallic foil card you scratch to reveal a code

scratch-card-tw

Customize

Foil
Card
Ink
Brush
22px
Threshold
0.60
Radius
18px
Width
360px
Height
224px

Props

25
NameTypeDefaultDescription
childrenReactNode—What sits under the foil. Replaces the built-in title and code.
titlestring"40% off"Large line revealed under the foil.
codestring"SPRING40"Code shown under the title. Click it after the reveal to copy it.
labelstring"Scratch to reveal"Hint printed on the foil. An empty string hides it.
widthnumber360Card width in pixels. The card shrinks to fit narrower spaces.
heightnumber224Card height in pixels. The ratio is kept when the card shrinks.
radiusnumber18Corner radius of the card.
finish"silver" | "gold" | "holographic" | "graphite""silver"Look of the foil. The light bands slide with the pointer.
brushSizenumber22Radius of the scratch in pixels.
thresholdnumber0.6Share of the foil scratched away before the rest clears by itself.
flakesbooleantrueSmall foil flakes tumble off as you scratch.
shimmerbooleantrueTilts the light across the foil now and then until someone scratches.
trigger"press" | "hover""press"Press scratches while the pointer is held down. Hover scratches as the mouse moves. Touch always scratches on drag.
revealStyle"crumble" | "fade""crumble"How the last of the foil clears. Crumble tears it into flakes that peel away from where you stopped and flutter down. Fade dissolves it.
introbooleantrueThe card settles into place and the foil catches the light the first time it scrolls into view.
resetDelaynumber0Milliseconds before the foil comes back after a reveal. 0 keeps the card revealed.
theme"auto" | "light" | "dark""auto"Auto matches the card to the background behind it.
foilColorstringfrom finishTints the foil with your own colour instead of the finish.
cardColorstringfrom themeColour of the card under the foil.
inkColorstringfrom themeColour of the revealed text.
onScratch(progress: number) => void—Called as the foil is scratched, with the share cleared from 0 to 1.
onReveal() => void—Called once the card is revealed.
ref{ reveal, reset }—Reveals the card or brings the foil back from your own code.
classNamestring—Classes for the root element.
styleCSSProperties—Inline styles for the root element.
childrenReactNode

What sits under the foil. Replaces the built-in title and code.

Default—
titlestring

Large line revealed under the foil.

Default"40% off"
codestring

Code shown under the title. Click it after the reveal to copy it.

Default"SPRING40"
labelstring

Hint printed on the foil. An empty string hides it.

Default"Scratch to reveal"
widthnumber

Card width in pixels. The card shrinks to fit narrower spaces.

Default360
heightnumber

Card height in pixels. The ratio is kept when the card shrinks.

Default224
radiusnumber

Corner radius of the card.

Default18
finish"silver" | "gold" | "holographic" | "graphite"

Look of the foil. The light bands slide with the pointer.

Default"silver"
brushSizenumber

Radius of the scratch in pixels.

Default22
thresholdnumber

Share of the foil scratched away before the rest clears by itself.

Default0.6
flakesboolean

Small foil flakes tumble off as you scratch.

Defaulttrue
shimmerboolean

Tilts the light across the foil now and then until someone scratches.

Defaulttrue
trigger"press" | "hover"

Press scratches while the pointer is held down. Hover scratches as the mouse moves. Touch always scratches on drag.

Default"press"
revealStyle"crumble" | "fade"

How the last of the foil clears. Crumble tears it into flakes that peel away from where you stopped and flutter down. Fade dissolves it.

Default"crumble"
introboolean

The card settles into place and the foil catches the light the first time it scrolls into view.

Defaulttrue
resetDelaynumber

Milliseconds before the foil comes back after a reveal. 0 keeps the card revealed.

Default0
theme"auto" | "light" | "dark"

Auto matches the card to the background behind it.

Default"auto"
foilColorstring

Tints the foil with your own colour instead of the finish.

Defaultfrom finish
cardColorstring

Colour of the card under the foil.

Defaultfrom theme
inkColorstring

Colour of the revealed text.

Defaultfrom theme
onScratch(progress: number) => void

Called as the foil is scratched, with the share cleared from 0 to 1.

Default—
onReveal() => void

Called once the card is revealed.

Default—
ref{ reveal, reset }

Reveals the card or brings the foil back from your own code.

Default—
classNamestring

Classes for the root element.

Default—
styleCSSProperties

Inline styles for the root element.

Default—