StealThis .dev

Music — Up-Next Queue Panel

A polished up-next queue side panel for a music player. The header pins the now-playing track with an animated equalizer, a play and pause morph button, and a draggable scrubber that shows live duration timestamps. Below it, the next-in-queue list shows cover art, title, artist, and length per row, each reorderable by drag-and-drop or up and down buttons, removable with an x, plus a clear-queue action, a playlist source label, and themed accents pulled from each cover.

Otwórz w Lab
html css vanilla-js
Targety: JS HTML

Kod

Up-Next Queue Panel

A self-contained side panel that sits beside any music player and answers one question: what plays next? The top section pins the current track with a CSS-drawn cover, an animated equalizer, and a morphing play/pause button. A draggable progress scrubber sits underneath with live timestamps, simulated playback driven by a one-second timer, and keyboard seeking via the arrow, Home, and End keys.

The lower section is the queue itself. Each row carries its own cover art, title, artist, and duration, and exposes a drag handle plus up/down fallback buttons so order can be changed with a pointer or the keyboard. Reordering uses native drag-and-drop with a live drop-target highlight, items can be removed individually with the x button, and a Clear queue control empties the list. Clicking any queued track promotes it straight to now-playing, re-themes the panel from the cover, and resets the scrubber.

Everything is vanilla HTML, CSS, and JavaScript with no audio files — playback is simulated with timers and transforms, and a small toast() helper confirms each action. The layout collapses cleanly down to ~360px and respects reduced-motion preferences.

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