Tubes

78 percent on Thursday

No dependencies
Code format

Install with shadcn

Needs a free account token. Get a token

npx shadcn@latest add @movin/card-tubes

About this component

A 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.

Triggers

  • Card
  • Glow
  • Hover
  • Click
  • Ambient
  • State change

Techniques

  • CSS variables
  • Gradient
  • Keyframes
  • CSS transition
  • @property
  • Filter

Difficulty

Intermediate

Accessibility

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

More cards

See all

102.6MHz

Soul

TunerGet code
WeighGet code
ZonesGet code

Design review

Live
  • Mina, speaking
  • Omar
  • Leo
  • Ama
  • Noor
8
HuddleGet code