StealThis .dev

Gym — Digital Membership Card

A tappable digital gym membership card that flips in 3D to reveal a door check-in code. The front shows the IRONPULSE brand, member name, tier, member ID, join date and a live Active status pill, while the back renders a canvas-drawn QR matrix and barcode for scanning at the gate. A pulsing show-at-front-desk mode and a one-tap brightness boost maximize contrast for readers, and quick chips switch the membership tier and regenerate the codes live.

Lab에서 열기
html css vanilla-js
Targets: JS HTML

Code

Digital Membership Card

A wallet-style membership card for the fictional IRONPULSE gym. The front carries the brand bolt, the member name (Marcus Delgado), the tier headline, member ID, join date and a pulsing Active status pill, finished with an EMV-style chip and a subtle light sheen. Tap the card — or use the Flip card button — and it rotates in 3D around the Y axis to reveal the back.

The back is built for the door reader: a crisp, finder-pattern QR matrix drawn entirely on a <canvas> (deterministic from the member ID, so it is stable per member but clearly fictional), plus a Code 128-style barcode and the printed ID below it. Show at front desk flips to the code and runs a neon glow pulse so staff can spot it from a distance, and Brightness boost slams the screen to high contrast for stubborn scanners.

Three tier chips — Black Unlimited, Pro and Flex — swap the headline and member ID and regenerate both the QR and barcode on the fly. Everything is vanilla JS: keyboard-operable buttons, visible focus rings, aria-pressed flip state, a small toast() helper and a prefers-reduced-motion fallback. Responsive down to ~360px.

Illustrative UI only — the QR and barcode are decorative and not scannable.