Slider

A custom-styled range input with glass track and thumb.

Preview

Usage

<input type="range" class="glass-slider" min="0" max="100" value="60" />

CSS Details

Track

PropertyValue
Height6px
Backgroundrgba(0,0,0,0.08) (dark: rgba(255,255,255,0.05))
Border1px solid var(--glass-border)
Border Radius9999px (pill)
Shadowinset 0 1px 1px rgba(0,0,0,0.05)

Thumb

PropertyValue
Size20×20px
Background#ffffff
Border1.5px solid var(--glass-border)
ShapeCircle
ShadowSpecular glare + 0 3px 8px ambient
Activescale(1.15) on press

The slider is cross-browser compatible with both -webkit-slider and -moz-range pseudo-elements.