Ripple Now Playing, animated React component
A player card whose cover sits under water. Every beat of the track drops a ring that spreads through the artwork, so the cover pulses in time. Pause and the water goes still, scrub the bar and a ring follows your finger, skip and the new cover slides in.
- Pro
- Cards
- Spring
Play with it
Move the controls and watch it change. Copy code gives you a snippet with only the props you changed.
Low Tide
Harbour Lights
0:37-2:47
Every beat ripples the cover. Scrub the bar to stir it.
Props
| Prop | Type | Default | What it does |
|---|---|---|---|
| tracks | RippleNowPlayingTrack[] | three demo tracks | The playlist: title, artist, bpm (the ripples follow it), length in seconds, three gradient colours (a, b, c) and the ink colour of the title. |
| autoplay | boolean | false | Starts playing by itself and skips to the next track every seven seconds until someone touches the card. Pauses off screen and never runs under reduced motion. Without it the card waits, paused, until you press play. |
| className | string | — | Extra classes for the card. |