Hover-reveal Sidebar
A copy-paste sidebars & docks component in pure HTML & CSS. Zero dependencies, framework-agnostic, MIT-licensed.
Sidebars & DocksHTMLCSSany framework
Copy into your project
HTML
<div class="nuda-hoverbar">
<button class="nuda-hoverbar__btn">
<span class="nuda-hoverbar__ic">📊</span>
<span class="nuda-hoverbar__label">Stats</span>
</button>
<!-- More items -->
</div>CSS
.nuda-hoverbar {
display: flex;
flex-direction: column;
gap: 4px;
padding: 8px;
background: rgba(255,255,255,.02);
border: 1px solid rgba(255,255,255,.06);
border-radius: 12px;
width: fit-content;
}
.nuda-hoverbar__btn {
position: relative;
display: flex;
align-items: center;
gap: 0;
padding: 8px 10px;
width: 36px;
background: transparent;
border: 0;
color: #a0a0a8;
border-radius: 8px;
cursor: pointer;
overflow: hidden;
transition: width .35s cubic-bezier(.16,1,.3,1),background .2s,gap .35s,color .2s;
}
.nuda-hoverbar__btn:hover {
width: 120px;
gap: 10px;
background: rgba(228,255,84,.08);
color: #e4ff54;
}
.nuda-hoverbar__ic {
font-size: 14px;
flex-shrink: 0;
}
.nuda-hoverbar__label {
font-size: 11px;
font-weight: 500;
white-space: nowrap;
opacity: 0;
transform: translateX(-8px);
transition: opacity .35s ease .1s,transform .35s ease .1s;
}
.nuda-hoverbar__btn:hover .nuda-hoverbar__label {
opacity: 1;
transform: translateX(0);
}
How to use Hover-reveal Sidebar
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.