StealThis .dev

Range Slider

Custom-styled range sliders — single value with floating tooltip, dual-handle range, stepped with tick marks, and color variants.

Open in Lab
css vanilla-js
Targets: JS HTML

Code

Range Slider

Styled range inputs with live value display and a dual-handle variant for min/max selection.

Variants

VariantDescription
Single + tooltipFloating label above thumb shows current value
Dual handleTwo thumbs for selecting a range (e.g. price filter)
SteppedTick marks at each step value
Color variantsBlue / green / red tracks

Implementation

Uses native <input type="range"> for accessibility — styling applied via ::-webkit-slider-thumb and ::-webkit-slider-runnable-track. Track fill uses a CSS linear-gradient updated on input events.