102.6MHz
Soul
%78 percent on Thursday
Markup where the component goes, CSS in your stylesheet, script before </body>. In Vue, Svelte or Angular, call initCardTubes(el) on the mounted element instead.
Paste into Claude, ChatGPT or Cursor after filling in {{USER_STACK}}, {{USER_STYLING}} and {{USER_CONSTRAINTS}}. Neutral keeps the greys you see here; Match my project asks the model to map them onto your own colour tokens.
Needs a free account token. Get a token
npx shadcn@latest add @movin/card-tubesA weekly energy card: seven frosted glass tubes lit from below in ember orange, each filled to its day's level, with heat shimmer rising off the hottest. Hover or focus a tube and it heats to white while the big percentage counts up to that day; press one to make it the day that counts.
Intermediate
Keyboard and screen readers
The seven tubes form a radiogroup named Day: each is a native button with role radio, aria-checked and a label of its day and percentage, with a roving tabindex and arrow keys that move the choice and focus. Focus previews a day exactly as hover does, and a visually hidden polite live region reads the percentage and day whenever it changes.
Reduced motion
The heat ribbons stop, the counter jumps and the hover transitions are cut.
Use it in anything you build, commercial and client work included. Licence