
Gooey Counter
Components
A full-screen "CARD VAULT" scene where an auto-scrolling, draggable marquee of credit cards passes through a central WebGL laser beam that splits each card into its plain face and a scrambling ASCII "encrypted" face, with particles spraying from the beam.
File Encryption is a self-contained hero scene: a row of credit cards scrolls continuously across the screen, and a vertical laser beam fixed at the centre splits every card it crosses, showing the plain card face on the left of the beam and a scrambling grid of ASCII glyphs on the right, while particles spray from the beam.
Use File Encryption when a fintech, payments or security page needs a striking visual metaphor for card data being protected. The component renders its own full-screen section with a "CARD VAULT" heading, a "256-bit AES Encryption Active" badge, a short tagline and cipher labels, all hard-coded; the props control speed, card size, accent colour and background colour. Visitors can grab and drag the marquee to move the cards through the beam.
The production risk is overclaiming security. The ASCII face is random glyphs, not real encryption, and the built-in badge, tagline and cipher labels (AES-256-GCM, RSA-4096, ChaCha20-Poly1305) are fixed demo copy; edit them in the source so they match what your product actually does.
import FileEncryption from "@/components/effects/file-encryption"; export default function Page() { return ( <> <FileEncryption/> </> );} A card-issuing or payments product page can use File Encryption as its hero: cards with numbers, holder names and expiry dates scroll into the laser and come out as scrambled ASCII, and visitors can drag the row to push a card through the beam themselves. The animation builds trust only when the copy beside it explains what is actually protected.
Not for security claims that the product cannot prove, or for pages where animation substitutes for clear privacy, compliance, or encryption copy.
The scene runs a WebGL beam, a 1,500-particle Canvas 2D layer, a GSAP-driven marquee and a glyph scramble on the card under the beam. The beam and particle loops pause when the section is offscreen or the tab is hidden, and the shared GSAP ticker is put to sleep with them, so place one instance per page and avoid stacking other heavy effects nearby.
Both canvases are aria-hidden and the marquee section is labelled "Encrypted cards marquee"; the card details and scrambled glyphs are still in the DOM as text. Dragging works with mouse and touch (the marquee sets touch-action: none, so a swipe on it drags the cards instead of scrolling the page), and the drag hint is hidden below the large breakpoint.
| Prop | Type | Default | Description |
|---|---|---|---|
accentColor | string | #ff5f00 | Beam, particle, and heading accent color. |
backgroundColor | string | #07060f | Scene and marquee background color. |
speed | number | 1 | Marquee, particle, and scramble animation speed. |
cardSize | number | 1 | Credit card size multiplier. |
Use it when a fintech, payments or card-security page needs a hero where credit cards visibly turn into scrambled ASCII as they pass through a laser beam.
Keep the real security claim in normal text and edit the built-in badge, tagline and cipher labels to match it. The canvases are aria-hidden, but the card details and ASCII glyphs remain in the DOM, so consider hiding the marquee from assistive technology if the scrambled text is noisy for your audience.
The same marquee runs on mobile with smaller gaps between cards (60px below 768px, 80px up to 1024px), and the drag hint is hidden. You can lower cardSize for narrow screens; the heading and tagline stay as readable text above the marquee.
Yes, when it clarifies a real protection moment already explained in copy. It damages trust when it implies security guarantees the product cannot support.
With reduced motion, auto-scroll and drag inertia stop (dragging still moves the cards directly), the beam flicker is frozen, the particle scatter and glyph scramble are skipped, and the badge dot stops pulsing. The background stars keep twinkling, and no static final state is shown.
Need a custom effect? Tell us what to create.