StealThis .dev

Music — Animated Equalizer Bars

A self-contained music audio-visualizer built with pure CSS keyframes and vanilla JS. Four equalizer styles — classic bars, dot matrix, mirrored center-out, and a circular radial burst — bounce in staggered sync to simulate a live signal. A morphing play/pause button starts and settles the animation, while sliders retune the band count and tempo and a swatch row recolors every bar from a themed accent palette.

Labで開く
html css vanilla-js
ターゲット: JS HTML

コード

Animated Equalizer Bars

A compact audio-visualizer playground themed around the fictional album Midnight Reservoir by Neon Tides. It renders four distinct equalizer treatments side by side — Classic Bars, a stacked Dot Matrix, a Mirrored center-out spectrum, and a Radial burst of rays around a glowing core — all driven by staggered CSS keyframes so they feel like they are reacting to a real audio stream. Everything is CSS-drawn: no images, no audio files, no libraries.

The morphing play/pause button (aria-pressed) toggles the whole stage between an animated and a flattened resting state. A draggable, keyboard-operable scrubber (role="slider") advances a simulated playback clock with live 0:00-style timestamps, and reaching the end auto-advances the queue. The control row lets you set the band count (6–48 bars), the tempo (which maps to animation-duration), and the accent color, which recolors every bar plus the CSS cover art via a single custom property. A like toggle, a play-count ticker, and a clickable up-next list round out the now-playing feel, with a small toast() helper confirming each action.

Built dark-first on the standard token palette, responsive down to ~360px, and respectful of prefers-reduced-motion. Drop the three snippet files into any page — no build step required.

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