Mega Menu
A copy-paste dropdowns & menus component in pure HTML & CSS. Zero dependencies, framework-agnostic, MIT-licensed.
Dropdowns & MenusHTMLCSSany framework
Product
Overview
Pricing
Developers
Docs
API
Copy into your project
HTML
<div class="nuda-mega">
<div class="nuda-mega__col">
<div class="nuda-mega__h">Product</div>
<div class="nuda-mega__l">Overview</div>
<div class="nuda-mega__l">Pricing</div>
</div>
<div class="nuda-mega__col">
<div class="nuda-mega__h">Developers</div>
<div class="nuda-mega__l">Docs</div>
<div class="nuda-mega__l">API</div>
</div>
</div>CSS
.nuda-mega {
display: flex;
gap: 1.5rem;
padding: 1rem 1.2rem;
background: #141414;
border: 1px solid rgba(255,255,255,.1);
border-radius: 12px;
animation: _megaIn .22s ease-out;
}
.nuda-mega__h {
font-size: .65rem;
text-transform: uppercase;
letter-spacing: .08em;
color: #777;
margin-bottom: .5rem;
}
.nuda-mega__l {
font-size: .8rem;
color: #cfcfcf;
padding: .25rem 0;
cursor: pointer;
}
.nuda-mega__l:hover {
color: #e4ff54;
}
@keyframes _megaIn {
from {
opacity: 0;
transform: translateY(-6px);
}
to {
opacity: 1;
transform: none;
}
}
@media (prefers-reduced-motion:reduce) {
.nuda-mega {
animation: none;
}
}
How to use Mega Menu
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.