Animated Rule
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-animrule" role="separator">
<span></span>
</div>CSS
.nuda-animrule span {
position: absolute;
left: 0;
top: 0;
width: 60px;
height: 100%;
background: linear-gradient(90deg, transparent, #e4ff54, transparent);
animation: nuda-rule-slide 2.4s ease-in-out infinite;
}
@keyframes nuda-rule-slide {
0% { transform: translateX(-100%); }
100% { transform: translateX(340%); }
}How to use Animated Rule
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.