4nodes
Amp
Markup where the component goes, CSS in your stylesheet, script before </body>. In Vue, Svelte or Angular, call initCardAmp(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-ampAbout 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