Conic Spin
A copy-paste animated gradients component in pure HTML & CSS. Zero dependencies, framework-agnostic, MIT-licensed.
Animated GradientsHTMLCSSany framework
Copy into your project
HTML
<!-- Conic Spin -->
<div class="nuda-gradient-conic" role="img" aria-label="Rotating conic gradient ring"></div>CSS
.nuda-gradient-conic {
width: 130px;
height: 130px;
border-radius: 50%;
background: conic-gradient(from 0deg,#e4ff54,#22d3ee,#a855f7,#fb7185,#e4ff54);
-webkit-mask: radial-gradient(circle,transparent 40%,#000 41%);
mask: radial-gradient(circle,transparent 40%,#000 41%);
animation: nuda-gradient-conic-spin 4s linear infinite;
}
@keyframes nuda-gradient-conic-spin {
to {
transform: rotate(360deg);
}
}
@media (prefers-reduced-motion:reduce) {
.nuda-gradient-conic {
animation: none;
}
}
How to use Conic Spin
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.