StealThis .dev

Airline — Frequent Flyer Card

A polished frequent-flyer status card for a fictional airline loyalty program, showing tier, miles balance, animated progress toward the next tier, a curated benefits list, recent flight and redemption activity, and a digital membership QR. Switch between two tiers (Gold and Platinum) to see palette, miles, and perks update live. Tap the card to flip it and reveal the scannable QR, and redeem miles to watch the balance and progress bar respond with a confirmation toast.

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

Code

Frequent Flyer Card

A self-contained loyalty card for the fictional Skyward Club program. The hero is a credit-card-sized membership card with a tier-themed gradient, the member’s available miles in tabular figures, member name, number and join year. Tap it and it flips in 3D to reveal a generated membership QR for gate and lounge scanning. Below the card, an animated progress bar counts up the member’s miles and fills toward the next tier, while two panels list current benefits and a feed of recent flights and redemptions with credit and debit amounts.

The header toggle switches between Gold and Platinum status. Each tier rewrites the card palette, miles balance, benefit set, and the goal on the progress bar, with the numbers counting up smoothly on every change. The redeem button spends 25,000 miles, decrements the balance, re-runs the progress animation, and fires a toast; it disables itself automatically once the balance can no longer cover a redemption.

Everything is plain HTML, CSS, and vanilla JavaScript — no frameworks, no build step, no external assets beyond the Inter web font. Status pills, hover and active states, reduced-motion handling, and a responsive layout that collapses to a single column near 360px keep it mobile-first and accessible.

Illustrative UI only — fictional airline, not a real booking or flight system.