Progress Pagination
A copy-paste pagination component in pure HTML & CSS. Zero dependencies, framework-agnostic, MIT-licensed.
PaginationHTMLCSSany framework
3 / 8
Copy into your project
HTML
<div class="nuda-pgp">
<div class="nuda-pgp__bar"><span class="nuda-pgp__fill"></span></div>
<span class="nuda-pgp__txt">3 / 8</span>
</div>CSS
.nuda-pgp {
display: inline-flex;
align-items: center;
gap: .7rem;
min-width: 200px;
}
.nuda-pgp__bar {
flex: 1;
height: 4px;
background: rgba(255,255,255,.1);
border-radius: 99px;
overflow: hidden;
}
.nuda-pgp__fill {
display: block;
height: 100%;
width: 37.5%;
background: #e4ff54;
border-radius: 99px;
animation: _pgpGrow .6s ease-out;
}
.nuda-pgp__txt {
font-size: .72rem;
color: #777;
font-variant-numeric: tabular-nums;
}
@keyframes _pgpGrow {
from {
width: 0;
}
to {
width: 37.5%;
}
}
@media (prefers-reduced-motion:reduce) {
.nuda-pgp__fill {
animation: none;
}
}
How to use Progress Pagination
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.