Notification Bell
A copy-paste notification center component in pure HTML & CSS. Zero dependencies, framework-agnostic, MIT-licensed.
Notification CenterHTMLCSSany framework
Copy into your project
HTML
<button class="nuda-nbell" aria-label="Notifications (3 unread)">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor"
stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<path d="M18 8A6 6 0 006 8c0 7-3 9-3 9h18s-3-2-3-9" />
<path d="M13.7 21a2 2 0 01-3.4 0" />
</svg>
<span class="nuda-nbell__badge">3</span>
</button>CSS
.nuda-nbell {
position: relative;
display: inline-flex;
align-items: center;
justify-content: center;
width: 38px;
height: 38px;
border-radius: 10px;
background: rgba(255,255,255,.04);
border: 1px solid rgba(255,255,255,.08);
color: #fafafa;
cursor: pointer;
transition: background .25s;
}
.nuda-nbell:hover {
background: rgba(255,255,255,.07);
}
.nuda-nbell svg {
width: 16px;
height: 16px;
animation: _bellRing 2.4s ease-in-out infinite;
}
.nuda-nbell__badge {
position: absolute;
top: -2px;
right: -2px;
min-width: 18px;
height: 18px;
padding: 0 5px;
background: #ff5e7a;
color: #fafafa;
border-radius: 99px;
border: 2px solid #09090b;
font-size: 10px;
font-weight: 700;
display: inline-flex;
align-items: center;
justify-content: center;
font-variant-numeric: tabular-nums;
}
@keyframes _bellRing {
0%,40%,100% {
transform: rotate(0);
}
50% {
transform: rotate(-12deg);
}
55% {
transform: rotate(10deg);
}
60% {
transform: rotate(-6deg);
}
65% {
transform: rotate(4deg);
}
70% {
transform: rotate(0);
}
}
@media (prefers-reduced-motion:reduce) {
.nuda-nbell svg {
animation: none;
}
}
How to use Notification Bell
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.