Player
Markup where the component goes, CSS in your stylesheet, script before </body>. In Vue, Svelte or Angular, call initCardPlayer(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-playerAbout this component
A now-playing card in pale fluted glass: each reed squeezes the aqua light behind it into a vertical streak, and the light moves only while the track plays. Play, previous, next, the scrub bar and the up-next row all work.
Triggers
- Click
- State change
- Card
- Gradient
- Ambient
- Loop
Techniques
- @property
- Keyframes
- Gradient
- Radial gradient
- Conic gradient
- Filter
- Interval
Difficulty
Advanced
Accessibility
Keyboard and screen readers
Play, previous and next are native buttons with aria-labels (Play or Pause follows the state); position is a native range with aria-valuetext such as 1:12 of 3:24; the title and artist sit in an aria-live region; the up-next row is a button named Play <title> next.
Reduced motion
The reeds, record and title transitions stay still while every control still works.
Use it in anything you build, commercial and client work included. Licence