Skip to content

Animated Dash

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-dash-flow" role="separator" aria-hidden="true"></div>
CSS
/* Animated Dash
   Dashes flow along the divider.
   Customize: --dash-color */

.nuda-dash-flow {
  --dash-color: #e4ff54;
  width: 100%;
  height: 2px;
  background-image: repeating-linear-gradient(
    90deg,
    var(--dash-color) 0,
    var(--dash-color) 8px,
    transparent 8px,
    transparent 16px
  );
  background-size: 16px 100%;
  opacity: 0.7;
  animation: nuda-dash-flow 1s linear infinite;
}

@keyframes nuda-dash-flow {
  to { background-position: 16px 0; }
}

@media (prefers-reduced-motion: reduce) {
  .nuda-dash-flow { animation: none; }
}

How to use Animated Dash

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.

More dividers components

← Browse all NudaUI components