Turntable

No dependencies
Code format

Install with shadcn

Needs a free account token. Get a token

npx shadcn@latest add @movin/radio-turntable

About this component

A record player speed switch: Off, 33, 45 or 78 rpm. The tone arm swings onto the record when it plays, and the record changes speed smoothly without ever jumping: three nested spinners (33, +12, +33 rpm) are paused or played, never restarted, so their speeds simply add up. Pure CSS.

Triggers

  • Click
  • State change
  • Continuous

Techniques

  • Keyframes
  • CSS variables
  • Radial gradient

Difficulty

Advanced

Accessibility

Keyboard and screen readers

Real native radios (visually hidden: absolute, 1x1, opacity 0) inside <label>s in a role="radiogroup" with an aria-label, so arrow keys, focus and screen readers work.

Reduced motion

The changes are instant.

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

More radios

See all
CardGet code
ClayGet code