StealThis .dev

Gym — Class Leaderboard

A live spin/HIIT class leaderboard built on the dark performance-gym theme with zero libraries. Ranked rows pair member avatars with an animated metric bar, a color-coded HR zone pill from Z1 to Z5 and a live effort percentage, while the top three earn dedicated podium cards. A segmented toggle re-ranks the field by calories, total output or Z4-plus zone minutes, and a simulated live tick nudges every rider and re-sorts rows with a smooth FLIP reorder animation, club-screen style.

Abrir en Lab
html css vanilla-js
Targets: JS HTML

Código

Class Leaderboard

A high-energy, club-screen leaderboard for a live spin or HIIT class on the dark performance-gym theme. Each ranked row shows the rider’s position with a tiny up/down mover badge, a colored avatar, their name, a neon metric bar scaled against the current leader, a live effort percentage and a color-coded heart-rate zone pill running Z1 (blue, easy) through Z5 (red, max). The top three riders are lifted out into dedicated podium cards, with the leader getting a glowing neon treatment.

A segmented Calories / Output / Zone Time toggle re-ranks the entire field on the fly — the bars, podium and headline metric all switch units together. A simulated live tick runs every couple of seconds, nudging each rider’s calories, output, effort and HR zone, then re-sorts the board. Rows glide to their new positions with a smooth FLIP-style reorder animation so overtakes read clearly, and a Pause control freezes the feed.

Tap or keyboard-activate any row to fire a toast with that rider’s full detail (rank, seat, calories, output, zone and effort). Names, seats and data are realistic but fictional, the layout collapses to a single column down to ~360px, focus rings stay visible for keyboard use, and motion respects prefers-reduced-motion. Everything is vanilla JS — no frameworks, no build step.