Tuner
102.6MHz
Soul
Markup where the component goes, CSS in your stylesheet, script before </body>. In Vue, Svelte or Angular, call initCardTuner(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.
Install with shadcn
Needs a free account token. Get a token
npx shadcn@latest add @movin/card-tunerAbout 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