Cassette Player

A mixtape with real reel physics: tape moves between reels and the full reel spins slower.

  • Zero dependencies
  • React + Tailwind
  • Accessible
  • Reduced-motion aware
Open in v0

Preview

Animated · Full motion: idle animation, physics and effects. animated (default)

Linear tape speed stays constant, so each reel's angular speed is inverse to its radius, like a real deck. Fast-forward and rewind whizz. Use it as a progress bar or a retro audio player via `progress`.

Installation

$ npx shadcn@latest add https://pickui.guetix.com/r/cassette-player.json

Uses the shadcn CLI. It creates components/pickui/cassette-player.tsx and installs nothing else.

Usage

example.tsx
import { CassettePlayer } from "@/components/pickui/cassette-player";

export default function Example() {
  return <CassettePlayer />;
}

Under the hood

The details that make it feel right, and that a one-line prompt usually misses:

  • 01Angular speed ∝ 1 / radius: the small reel visibly races the big one.

Props

PropTypeDefaultDescription
titlestring—Label text.
lengthnumber180Seconds.
progressnumber—Controlled 0–1.
onProgress(p) => void—Position updates.
animatedbooleantruefalse = the calm “Regular” version (no idle or ambient motion).

Accessibility

  • Transport buttons are labelled toggles; position is a progressbar.