StealThis .dev
页面 中等

Music — Track + Synced Lyrics View

A dark, karaoke-style track page where simulated playback drives time-synced lyrics. The header pairs a large CSS-drawn album cover and animated equalizer with the title, artist and a waveform scrubber that supports click, drag and keyboard seeking. The main panel auto-scrolls a vertical lyric list so the current line enlarges and gradient-highlights at centre while past lines dim and upcoming lines stay muted. Clicking any line seeks to its timestamp, and font-size and timestamp toggles round out the controls.

在 Lab 中打开
html css vanilla-js
目标: JS HTML

代码

Track + Synced Lyrics View

A focused player page for the fictional track Paper Lanterns by Neon Tides, from the album Midnight Reservoir. The header pairs a fully CSS-drawn cover — layered gradients, blurred shapes, a fading grid and a tiny equalizer that animates only while playing — with the track title, artist line and a waveform scrubber. The cover’s two accent colors theme the whole page: they tint the progress fill, the play button glow and the highlighted lyric line.

The main panel is a vertical, auto-scrolling lyric list. A timed schedule drives the karaoke feel: the current line enlarges, picks up a gradient text fill and an accent bar, and smoothly scrolls to the centre of the viewport as playback advances. Past lines dim away, upcoming lines stay muted, and instrumental breaks render as spaced glyphs. Clicking any line seeks playback to that line’s timestamp and starts it if paused.

Playback is fully simulated with requestAnimationFrame — no audio files. The waveform scrubber exposes role="slider" with live aria-valuenow/aria-valuetext and supports click-to-seek, pointer dragging and ArrowLeft/ArrowRight (Shift for larger steps) keyboard seeking. Play and the two toggles use aria-pressed: one switches lyric font size, the other reveals per-line timestamps. A small toast() helper confirms seeks and mode changes, and the layout collapses cleanly to a single column down to ~360px.

Illustrative UI only — fictional artists, albums, tracks, and data. No real audio playback.