We're live on Product Hunt today

Cover Flow

Pro

A 3D Cover Flow album carousel where side cards swing into the center and a mini player below follows the track.

carouselcss 3d3dcover flowmusicplayerkeyboardcards
Cover Flow component preview

Props

PropTypeDefaultDescription
tracksCoverFlowTrack[]Six Wensity cover-art platesAlbum cards in the flow. Each needs id, artist, title, and image.
activeIndexnumber-Controlled index of the centered card.
defaultActiveIndexnumber2Uncontrolled initial centered card.
onActiveChange(index: number, track: CoverFlowTrack) => void-Fires whenever the centered track changes.
playingboolean-Controlled playback flag for the mini player.
defaultPlayingbooleantrueUncontrolled initial playback. The waveform and progress run while playing.
onPlayingChange(playing: boolean) => void-Fires whenever play or pause toggles.
cardWidthnumber248Card width in pixels.
cardHeightnumber318Card height in pixels.
perspectivenumber900CSS perspective distance in pixels, floored at 400. Lower is a wider lens.
hidePlayerbooleanfalseHide the glass playback bar under the carousel.
onMutedChange(muted: boolean) => void-Fires when the mute button toggles. The bar is UI only: mute your own audio here.
onMore() => void-Handler for the overflow button. Disabled until you pass one.
onCast() => void-Handler for the cast button. Disabled until you pass one.
onEqualizer() => void-Handler for the equalizer button. Disabled until you pass one.
labelstring"Cover Flow player"Accessible name for the carousel region.