Count Pop
A copy-paste badges & tags component in pure HTML & CSS. Zero dependencies, framework-agnostic, MIT-licensed.
Badges & TagsHTMLCSSany framework
7
Copy into your project
HTML
<!-- Count Pop — number badge pops on change.
Re-trigger the animation by replacing the node or
toggling the class when the count updates. -->
<span class="nuda-count-pop">7</span>CSS
/* Count Pop
Number badge that pops in (scale) on change.
To replay on update, remove + re-add the class, or
replace the element so the animation restarts. */
.nuda-count-pop {
display: inline-flex;
align-items: center;
justify-content: center;
min-width: 24px;
height: 24px;
padding: 0 7px;
background: #e4ff54;
color: #09090b;
border-radius: 99px;
font-size: 12px;
font-weight: 800;
font-variant-numeric: tabular-nums;
animation: nuda-count-pop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
will-change: transform;
}
@keyframes nuda-count-pop {
0% { transform: scale(0.4); opacity: 0; }
60% { transform: scale(1.25); opacity: 1; }
100% { transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
.nuda-count-pop { animation: none; }
}How to use Count Pop
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.