Hue Cycle
A copy-paste animated gradients component in pure HTML & CSS. Zero dependencies, framework-agnostic, MIT-licensed.
Animated GradientsHTMLCSSany framework
Copy into your project
HTML
<!-- Hue Cycle Panel -->
<div class="nuda-gradient-hue" role="img" aria-label="Full spectrum hue cycle"></div>CSS
.nuda-gradient-hue {
width: 240px;
height: 140px;
border-radius: 14px;
background: linear-gradient(120deg,#e4ff54,#22d3ee,#a855f7);
animation: nuda-gradient-hue-cycle 6s linear infinite;
}
@keyframes nuda-gradient-hue-cycle {
to {
filter: hue-rotate(360deg);
}
}
@media (prefers-reduced-motion:reduce) {
.nuda-gradient-hue {
animation: none;
}
}
How to use Hue Cycle
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.