Skip to content

Dying Neon Tube

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

Neon & GlowHTMLCSSany framework
SALE

Copy into your project

HTML
<!-- Dying Neon Tube — one letter buzzes with a faulty ballast -->
<div class="nuda-ne2-dying-tube">
  <span class="nuda-ne2-dying-tube__letter">S</span>
  <span class="nuda-ne2-dying-tube__letter nuda-ne2-dying-tube__letter--dying">A</span>
  <span class="nuda-ne2-dying-tube__letter">L</span>
  <span class="nuda-ne2-dying-tube__letter">E</span>
</div>
CSS
.nuda-ne2-dying-tube {
  display: flex;
  gap: 2px;
  align-items: center;
  justify-content: center;
  padding: 26px 34px;
  background: #09090b;
  border-radius: 12px;
}

.nuda-ne2-dying-tube__letter {
  font-family: ui-sans-serif,system-ui,sans-serif;
  font-size: 36px;
  font-weight: 800;
  color: #fbffe0;
  text-shadow: 0 0 4px #fff,0 0 10px #e4ff54,0 0 22px #e4ff54,0 0 44px rgba(228,255,84,.6);
}

.nuda-ne2-dying-tube__letter--dying {
  animation: _nuda-ne2dyingtube 4s linear infinite;
}

@keyframes _nuda-ne2dyingtube {
  0%,5%,8%,16%,19%,100% {
    opacity: 1;
  }
  6%,7%,17%,18% {
    opacity: .2;
  }
}

@media (prefers-reduced-motion:reduce) {
  .nuda-ne2-dying-tube__letter--dying {
    animation: none;
    opacity: 1;
  }
}

How to use Dying Neon Tube

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 neon & glow components

← Browse all NudaUI components