Gradient Progress
A copy-paste animated gradients component in pure HTML & CSS. Zero dependencies, framework-agnostic, MIT-licensed.
Animated GradientsHTMLCSSany framework
Copy into your project
HTML
<!-- Gradient Progress Bar -->
<div class="nuda-gradient-progress" role="progressbar"
aria-label="Loading" aria-valuemin="0" aria-valuemax="100" aria-valuenow="65">
<div class="nuda-gradient-progress__fill"></div>
</div>CSS
.nuda-gradient-progress {
width: 220px;
height: 14px;
border-radius: 99px;
background: #1c1c1f;
overflow: hidden;
}
.nuda-gradient-progress__fill {
width: 65%;
height: 100%;
border-radius: 99px;
background: linear-gradient(90deg,#e4ff54,#22d3ee,#e4ff54);
background-size: 200% 100%;
animation: nuda-gradient-progress-flow 2s linear infinite;
}
@keyframes nuda-gradient-progress-flow {
to {
background-position: 200% 0;
}
}
@media (prefers-reduced-motion:reduce) {
.nuda-gradient-progress__fill {
animation: none;
}
}
How to use Gradient Progress
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.