Skip to content

DNA Helix

A copy-paste loaders component in pure HTML & CSS. Zero dependencies, framework-agnostic, MIT-licensed.

LoadersHTMLCSSany framework

Copy into your project

HTML
<!-- DNA Helix Loader -->
<div class="nuda-dna-helix-loader" role="status" aria-label="Loading">
  <span class="nuda-dna-helix-loader__col"><i></i><i></i></span>
  <span class="nuda-dna-helix-loader__col" style="animation-delay:.12s"><i></i><i></i></span>
  <span class="nuda-dna-helix-loader__col" style="animation-delay:.24s"><i></i><i></i></span>
  <span class="nuda-dna-helix-loader__col" style="animation-delay:.36s"><i></i><i></i></span>
  <span class="nuda-dna-helix-loader__col" style="animation-delay:.48s"><i></i><i></i></span>
  <span class="nuda-dna-helix-loader__col" style="animation-delay:.6s"><i></i><i></i></span>
</div>
CSS
/* DNA Helix Loader
   Paired dots in columns rotating around a horizontal axis to suggest a helix.
   Customize: --dnal-color */

.nuda-dna-helix-loader {
  --dnal-color: #e4ff54;
  display: flex;
  align-items: center;
  gap: 5px;
  height: 44px;
  padding: 8px;
}

.nuda-dna-helix-loader__col {
  position: relative;
  width: 6px;
  height: 32px;
  animation: nuda-dna-helix-loader 1.6s ease-in-out infinite;
  will-change: transform;
}

.nuda-dna-helix-loader__col i {
  position: absolute;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.nuda-dna-helix-loader__col i:nth-child(1) { top: 0; background: var(--dnal-color); }
.nuda-dna-helix-loader__col i:nth-child(2) { bottom: 0; background: rgba(228, 255, 84, 0.4); }

@keyframes nuda-dna-helix-loader {
  0%, 100% { transform: rotateX(0deg); }
  50%      { transform: rotateX(180deg); }
}

@media (prefers-reduced-motion: reduce) {
  .nuda-dna-helix-loader__col { animation: none; }
}

How to use DNA Helix

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 loaders components

← Browse all NudaUI components