Music player
A mini now-playing bar that opens into the full player: the artwork grows from a thumbnail into the cover, the title, artist and play button settle into place, and sound waves move while it plays.
Why the best interfaces feel inevitable
Field Notes
Press play, or tap the bar, to open the player; the chevron folds it back.
Things to try
- Open the player. The thumbnail grows into the cover, the title and artist lift into place under it, and the play button settles into the middle of the controls.
- Press play. The sound waves start to move, and the part already played darkens. The player has a scrubber, skip back 15 and forward 30, and on this page it plays the real song preview.
- Fold it back with the chevron. The cover shrinks back into exactly the thumbnail it came from.
- Open it halfway through closing. Every change starts from where things are on screen, so it just turns around.
Install
npx shadcn@latest add https://your-docs-site/r/podcast-player.jsonDependencies
npm install @hugeicons/core-free-icons @hugeicons/react @remold-ui/react motionHow it works
- The mini bar and full player are different markup. A Motion
LayoutGroupgives the artwork, title, show and play control matchinglayoutIds, so the compact player genuinely expands rather than being swapped. - The play button is the same dark disc in both shapes, only bigger, so it reads as one control. Play and pause are one Icon that morphs between the two symbols.
episodestakes{ id, show, title, artwork, colors, audio, seconds }, and the first one plays. Withaudiothe player plays the file; without it, play just runs the clock.
On this page the songs are Kofi Kinaata's 30-second previews from Apple Music, through a small cached server route; the music and artwork belong to their creators. Installed, the component shows a made-up show with drawn artwork.
Table booking
A restaurant booking that fell through offers two other times; the one you pick grows into the updated booking, and its party size opens a compact picker. Built on Base UI's Button, Toggle Group and Tooltip.
Product tour
A product tour where the spotlight springs from one control to the next, a line ties each tip to what it explains, and the tip grows out of the help button and folds back into it.