An infinite, draggable stream of cards drifts across a black stage. A vertical light beam sits at the center: as each card crosses it, the normal card clips away and a binary (0s and 1s) version takes over with a glitch flicker and a skewed scan flash. Two particle systems run underneath, a Three.js starfield and a 2D scanner burst that intensifies while a card is actively being scanned. The beam and particles glow green. Drag, scroll, or just watch.
Installation
Install dependencies.
Copy and paste the following code into your project.
Unlock the full library
Get all pro blocks, components & illustrations, and production-ready Next.js + Tailwind templates.
Update the import paths to match your project setup.
Usage
import { CardScanner } from "@/components/pro/blocks/card-scanner";
export default function Page() {
return <CardScanner />;
}Custom card images
Pass your own card front images; they cycle in order. Any image that fails to load falls back to a purple gradient rendered on a canvas.
<CardScanner
images={["/cards/gold.png", "/cards/platinum.png", "/cards/black.png"]}
/>Notes
- The block renders its own black stage with
overflow: hidden— drop it into a full-width section for the best effect. - The card stream is draggable (mouse and touch) and responds to wheel scroll over it.
- The scanner beam, particle burst, and ASCII reveal are all self-contained; there are no other registry dependencies.
Related blocks
- Character Selector
A gacha-style deploy scene — three equip slots open a blurred roster overlay with GSAP timelines, star-tier cards, and swap logic.
- Feature Section 01
A three-card feature section with animated assets — a typewriter prompt, a browser design mock with a draw-in frame, and an infrastructure sidebar with a looping highlight.
- Feature Section 02
A security feature section arranging the auth mockups — security dial, fraud feed, MFA code, session list, and bot radar — in an asymmetric grid.
- Feature Section 03
A developer-experience feature section with code diff, pipeline run, merge flow, and CLI mockups woven into a bento of narrative cards.
