StealThis .dev

Gym — Membership Pricing

A high-energy gym membership pricing page with a monthly versus annual billing toggle that animates every price and reveals the yearly savings live. Four tier cards (Basic, Plus, Unlimited, Black) carry feature checklists and a highlighted most-popular plan, backed by a stackable class-pack add-on row, a sticky-header comparison table covering every feature, and a single-open FAQ accordion. Built with vanilla JS for the toggle, accordion and CTA toasts.

Labで開く
html css vanilla-js
ターゲット: JS HTML

コード

Membership Pricing

A self-contained membership pricing page for a fictional performance gym, Ironhaus. The hero sits above a pill-shaped billing switch: flip it between Monthly and Annual and every tier price counts up or down with a smooth easing animation while the per-card billing note swaps to show the exact yearly total and dollars saved.

Four tier cards — Basic, Plus, Unlimited and Black — each list included and excluded features with neon check and muted cross markers. Plus wears a “Most popular” ribbon and a neon-tinted card treatment, and Black uses an invite ribbon. Below the tiers, a class-pack add-on row offers stackable extras (HIIT pack, recovery day pass, PT block), and a horizontally scrollable comparison table with a sticky header maps every feature across all four plans.

The page closes with a single-open FAQ accordion that animates panel height, and every actionable button — plan CTAs, add-ons, and the billing toggle — fires a small toast confirming the choice, including whether monthly or annual is active. All interactions are plain vanilla JS with no dependencies, accessible roles and ARIA states, visible focus rings, and a responsive layout that collapses to a single column at 360px.