Gradient Button
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 Button -->
<button class="nuda-gradient-button" type="button">Get Started</button>CSS
.nuda-gradient-button {
border: none;
cursor: pointer;
padding: 14px 28px;
border-radius: 10px;
color: #09090b;
font: 700 15px/1 system-ui,sans-serif;
background: linear-gradient(90deg,#e4ff54,#4ade80,#22d3ee,#e4ff54);
background-size: 300% 100%;
animation: nuda-gradient-button-flow 5s linear infinite;
transition: transform .2s ease,box-shadow .2s ease;
}
.nuda-gradient-button:hover {
transform: translateY(-2px);
box-shadow: 0 8px 24px -6px rgba(228,255,84,.5);
}
.nuda-gradient-button:focus-visible {
outline: 2px solid #e4ff54;
outline-offset: 3px;
}
@keyframes nuda-gradient-button-flow {
to {
background-position: 300% 0;
}
}
@media (prefers-reduced-motion:reduce) {
.nuda-gradient-button {
animation: none;
}
.nuda-gradient-button:hover {
transform: none;
}
}
How to use Gradient Button
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.