StealThis .dev

Banking — Virtual Card Visual

A polished, 3D flippable virtual bank card component built in the trust-first fintech style with Inter typography and tabular figures. The brand face shows a metallic chip, contactless glyph, masked PAN, holder and expiry, then flips in 3D to reveal the CVV on a magnetic-stripe back. Tap to flip, reveal or hide the number, and copy it to the clipboard, and switch live between three designs — metal black, aurora gradient and minimal white — all in vanilla JavaScript with a small toast helper.

Open in Lab
html css vanilla-js
Targets: JS HTML

Code

Virtual Card Visual

A self-contained payment-card component rendered in calm, trust-first fintech style: Inter typography, tabular figures for the masked PAN and expiry, a gilded chip, a contactless glyph and a soft layered shadow that lifts the card off the page. Tap the card and it rotates a full 180° in 3D to reveal a magnetic-stripe back, signature panel and a boxed CVV, complete with a 3-D Secure issuer note.

Three controls sit below the card. Flip mirrors the tap gesture, Reveal number unmasks the full PAN and CVV (with a privacy toast) and toggles back to a hidden state, and Copy number writes the digits to the clipboard with a graceful execCommand fallback. A theme picker behaves as a proper radiogroup — click or arrow-key between Metal Black, Aurora Gradient and Minimal White to restyle the live card instantly, including the minimal theme that flips text to ink for contrast.

Everything is vanilla JavaScript with a tiny toast(msg) helper — no frameworks, no build step. The card is a real <button> with aria-pressed, swatches expose aria-checked, focus rings are visible throughout, and the layout stays comfortable down to 360px for a mobile-first wallet feel.

Illustrative UI only — not real banking software or financial advice.