Tuner

102.6MHz

Soul

No dependencies
Code format

Install with shadcn

Needs a free account token. Get a token

npx shadcn@latest add @movin/card-tuner

About this component

A radio in black with a notched corner. A strip of magenta neon carries the band's scale past a fixed needle: drag it and the big reading rolls by tenths while static crackles over the glass between stations. Let go near a station and the strip snaps onto it, the static dies and its name lights up under the reading; the FM and AM keys swap the whole scale.

Triggers

  • Card
  • Neon
  • Glow
  • State change
  • Click
  • Continuous

Techniques

  • CSS variables
  • CSS transition
  • Keyframes
  • Event position
  • Gradient
  • Radial gradient
  • SVG filter
  • mix-blend-mode

Difficulty

Advanced

Accessibility

Keyboard and screen readers

The card is a section labelled Radio. The bands are a radiogroup of two native buttons with role=radio and aria-checked. The strip is a role=slider labelled Frequency with aria-valuemin, aria-valuemax and aria-valuenow for the band and an aria-valuetext that reads the frequency, unit and the station name when locked; arrow keys step by one, PageUp and PageDown by station, Home and End to the ends, and it takes pointer drags with capture. The reading is a polite live region, the scale, needle and static are aria-hidden, and the name row is aria-hidden when empty. Focus rings are white.

Reduced motion

The scale jumps and the static is a still texture.

Use it in anything you build, commercial and client work included. Licence

More cards

See all
WeighGet code
ZonesGet code

Design review

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

Mira Holt

Art director

TeamGet code