Vertical Slider
A copy-paste sliders & ranges component in pure HTML & CSS. Zero dependencies, framework-agnostic, MIT-licensed.
Sliders & RangesHTMLCSSany framework
Copy into your project
HTML
<div class="nuda-vslider">
<div class="nuda-vslider__track">
<div class="nuda-vslider__fill" style="height:65%"></div>
<div class="nuda-vslider__thumb" style="bottom:65%"></div>
</div>
<span class="nuda-vslider__value">65</span>
</div>CSS
.nuda-vslider {
display: inline-flex;
flex-direction: column;
align-items: center;
gap: 8px;
height: 160px;
}
.nuda-vslider__track {
position: relative;
width: 4px;
flex: 1;
background: rgba(255,255,255,.08);
border-radius: 99px;
}
.nuda-vslider__fill {
position: absolute;
left: 0;
bottom: 0;
width: 100%;
background: linear-gradient(180deg,#e4ff54,#b8cc43);
border-radius: 99px;
transition: height .4s cubic-bezier(.16,1,.3,1);
}
.nuda-vslider__thumb {
position: absolute;
left: 50%;
width: 14px;
height: 14px;
border-radius: 50%;
background: #e4ff54;
transform: translate(-50%,50%);
cursor: grab;
box-shadow: 0 0 12px rgba(228,255,84,.5);
transition: bottom .4s cubic-bezier(.16,1,.3,1),transform .25s;
}
.nuda-vslider__thumb:hover {
transform: translate(-50%,50%) scale(1.2);
}
.nuda-vslider__value {
color: #e4ff54;
font-size: 11px;
font-weight: 700;
font-variant-numeric: tabular-nums;
}
How to use Vertical Slider
Paste the HTML where you need it and the CSS into a global stylesheet (or a <style> tag). Every class is prefixed nuda- so it never collides with Tailwind or your own styles. Tweak the CSS custom properties to match your design system.
Works in React, Vue, Svelte, Astro, Next.js, Nuxt, Laravel Blade, Django, Rails — or a single .html file. No npm install, no build step.