Amp

No dependencies
Code format

Install with shadcn

Needs a free account token. Get a token

npx shadcn@latest add @movin/card-amp

About this component

A brushed aluminium console with one big knurled knob you turn by dragging round it, a recessed meter of pink LEDs that light with the level and burn hotter at the top, a chrome rocker that powers the unit with a thunk, and a grille that glows pink from behind while it is on.

Triggers

  • Card
  • Neon
  • Mouse tracking
  • State change
  • Click
  • Glow

Techniques

  • CSS variables
  • Conic gradient
  • Event position
  • clip-path
  • CSS transition
  • Keyframes
  • Gradient

Difficulty

Advanced

Accessibility

Keyboard and screen readers

A section labelled Amplifier. The knob is a focusable button with role slider (aria-valuemin 0, aria-valuemax 100, aria-valuenow) that the arrow keys, Home and End drive; the rocker is a native checkbox labelled Power inside its label, with a focus ring drawn round the well. The scale, LEDs, pilot lamp and grille are aria-hidden decoration driven by the two controls.

Reduced motion

The VU flicker and the glow breathing stop and every change is a cut.

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

More cards

See all

4nodes

BlocksGet code

0:14

BrewGet code
BridgeGet code
CabinGet code