Gradient Flow Line
A copy-paste dividers component in pure HTML & CSS. Zero dependencies, framework-agnostic, MIT-licensed.
DividersHTMLCSSany framework
Copy into your project
HTML
<div class="nuda-grad-flow" role="separator" aria-hidden="true"></div>CSS
/* Gradient Flow Line
A gradient that flows along the line.
Customize: gradient stop colors */
.nuda-grad-flow {
width: 100%;
height: 2px;
background: linear-gradient(
90deg,
transparent,
#e4ff54,
#62b6ff,
#e4ff54,
transparent
);
background-size: 200% 100%;
border-radius: 2px;
animation: nuda-grad-flow 3s linear infinite;
}
@keyframes nuda-grad-flow {
to { background-position: 200% 0; }
}
@media (prefers-reduced-motion: reduce) {
.nuda-grad-flow { animation: none; }
}How to use Gradient Flow Line
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.