Mobile Bottom Nav
A copy-paste sidebars & docks component in pure HTML & CSS. Zero dependencies, framework-agnostic, MIT-licensed.
Sidebars & DocksHTMLCSSany framework
Copy into your project
HTML
<nav class="nuda-bnav">
<button class="nuda-bnav__btn is-active">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor"
stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<path d="M3 11l9-8 9 8v10a2 2 0 01-2 2h-4v-7H9v7H5a2 2 0 01-2-2V11z" />
</svg>
<span>Home</span>
</button>
<!-- More nav items -->
</nav>CSS
.nuda-bnav {
display: flex;
justify-content: space-around;
align-items: center;
padding: 8px 6px;
background: rgba(17,17,20,.85);
backdrop-filter: blur(12px);
border: 1px solid rgba(255,255,255,.06);
border-radius: 18px;
width: 100%;
max-width: 280px;
}
.nuda-bnav__btn {
position: relative;
display: flex;
flex-direction: column;
align-items: center;
gap: 2px;
padding: 6px 12px;
background: transparent;
border: 0;
color: #63636e;
font-size: 9px;
cursor: pointer;
border-radius: 10px;
transition: color .25s;
}
.nuda-bnav__btn svg {
width: 18px;
height: 18px;
transition: transform .35s cubic-bezier(.16,1,.3,1);
}
.nuda-bnav__btn:hover {
color: #a0a0a8;
}
.nuda-bnav__btn.is-active {
color: #e4ff54;
}
.nuda-bnav__btn.is-active svg {
transform: translateY(-3px) scale(1.12);
}
.nuda-bnav__btn.is-active::after {
content: '';
position: absolute;
bottom: 2px;
left: 50%;
transform: translateX(-50%);
width: 18px;
height: 3px;
border-radius: 99px;
background: #e4ff54;
animation: _bnavSlide .35s cubic-bezier(.16,1,.3,1);
}
@keyframes _bnavSlide {
from {
width: 0;
}
to {
width: 18px;
}
}
@media (prefers-reduced-motion:reduce) {
.nuda-bnav__btn.is-active svg {
transform: none;
}
.nuda-bnav__btn.is-active::after {
animation: none;
}
}
How to use Mobile Bottom Nav
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.