Skip to content

Vertical Range Slider

Eight vertical range sliders styled as an audio equalizer with fader caps, live dB readouts, presets and a response curve.

Also known as: vertical slider, audio equalizer sliders, vertical fader control, graphic equalizer ui, mixer slider

Vertical Range Slider live demo

Open in new tab

Pure CSS code (HTML, CSS, JS)

A set of vertical range sliders laid out as an eight-band audio equalizer, built with plain CSS and a small vanilla JavaScript helper. Each band is a native input type="range" styled as a mixing-console fader, with a live dB readout, a filled track from 0 dB to the value and a response curve above. Use it for audio players, sound settings, studio dashboards or any control panel that needs vertical sliders.

How it works

The root section.vrs-mixer contains a header with preset buttons, an SVG .vrs-curve and the .vrs-bands row. Every .vrs-band stacks an output.vrs-value, a .vrs-slot and a label.vrs-label. The slot is a fixed vertical box; the .vrs-input inside it is a normal horizontal range that is centered and turned with rotate(-90deg), so the minimum sits at the bottom. This trick works in every modern browser and keeps full control over the track and thumb styling through ::-webkit-slider-runnable-track, ::-moz-range-track and the thumb pseudo-elements.

The script listens for input events, then sets two custom properties on the slider, --vrs-lo and --vrs-hi, which paint the accent color between 0 dB and the current value. It also updates the readout, sets aria-valuetext (for example "+3 dB") and redraws the .vrs-curve-line polyline. Clicking a .vrs-preset button applies the comma-separated values from its data-values attribute, and the matching preset gets aria-pressed="true". A vrs:change event with all values is dispatched on change and after a preset is applied. Without JavaScript the sliders still work; only the fill, readouts and curve stay static.

Customization

  • --vrs-accent on .vrs-mixer: the color of the filled track, fader line, curve and focus ring.
  • --vrs-height: the slider length (200 px on phones, 220 px from 640 px); the slot ticks adjust automatically.
  • --vrs-slot-width and --vrs-thumb-width: the width of each band and of the fader cap.
  • min, max and step on each .vrs-input: the range, e.g. min="0" max="100" for a volume mixer; the fill then starts at the bottom.
  • data-values on a .vrs-preset: add or change presets with one value per band, such as "4,4,2,0,0,0,2,4".
  • Add or remove .vrs-band blocks to change the number of bands; the curve uses as many points as there are sliders.

Use cases

  • Audio players: eight vertical bands let listeners shape bass and treble with live dB readouts
  • Studio dashboards: fader-style caps and a response curve show the current sound profile
  • Sound settings: preset buttons apply a full set of band values in one click
  • Volume mixers: change min and max to build vertical volume or level controls

Accessibility

Every slider is a native range input with a label and aria-orientation="vertical", so arrow keys, Page Up/Down and Home/End work as usual and Arrow Up raises the gain. aria-valuetext gives screen readers the value with its unit. The output elements are linked to their slider with for. Presets are a role="group" of toggle buttons with aria-pressed. A focused thumb gets a double ring and its band label switches to the accent color. Thumb scale transitions are disabled with prefers-reduced-motion: reduce.

Usage notes

The ids vrs-band-1 to vrs-band-8 must be unique, so rename them when you place two mixers on one page. Listen for vrs:change on .vrs-mixer to send the values to your audio engine.

Vertical Range Slider at a glance

Framework
Pure CSS
Code
HTML, CSS, JavaScript
JavaScript
Vanilla JavaScript, no jQuery
Dependencies
None
Layout
Responsive, works on mobile
Category
Range Sliders
License
Free for personal and commercial use

Questions about this template

Can I use the Vertical Range Slider code for free?

Yes. You can copy or download the code and use it in personal and commercial projects, including client work. No sign-up is needed. Reselling it as part of a component library or template collection is not allowed; see the license.

How do I add it to my website?

There is nothing to install. Paste the HTML where the component should appear, add the CSS to your stylesheet and load the JavaScript before the closing </body> tag. Download HTML gives you a complete page with everything already linked.

Does it need jQuery or a JavaScript framework?

No. The script is plain vanilla JavaScript, so it works without jQuery, React or Vue. You can still use the markup inside those frameworks.

Does it work on mobile?

Yes. The layout adapts to small screens. Use the Mobile and Tablet buttons above the live demo to check it at phone and tablet width.

Requirements

No dependencies. Pure HTML, CSS and JavaScript.

Vertical Range Slider – free Pure CSS range slider template
Vertical Range Slider · free Pure CSS range slider template

More Range Sliders

Custom Range Slider – free Pure CSS range slider template

Custom Range Slider

Styled range input with a gradient fill, ring thumb and a live value bubble that follows the handle, in pure CSS and a few lines of vanilla JS.

Price Range Filter – free Bootstrap 6 range slider template

Price Range Filter

Bootstrap 6 shop price filter with minimum and maximum Range sliders, synced number inputs, a price histogram, quick-range chips and live product results.

Range Slider with Value – free Bootstrap 6 range slider template

Range Slider with Value

Dark Bootstrap 6 photo adjustment panel with Range sliders, live output values, a value bubble, tick marks, step buttons and a filtered live preview.

Dual Range Price Slider – free Tailwind CSS range slider template

Dual Range Price Slider

Tailwind CSS min/max price slider with two handles, synced number inputs and a live histogram that counts products in the selected range.