Skip to content

Neon Flicker Text

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

Text EffectsHTMLCSSany framework
Neon Flicker

Copy into your project

HTML
<!-- Neon Flicker Text — subtle neon flicker (≤3 flashes/sec) -->
<span class="nuda-neon-flicker">Neon Flicker</span>
CSS
/* ── Neon Flicker Text ───────────────────────────────────────
   Flicker keyframes are sparse (a few short drops over 4s) to
   stay well under 3 flashes/sec. Disabled under reduced-motion.
   Customize:
     --nuda-nf-clr   : neon glow color
     --nuda-nf-text  : base text color
   ──────────────────────────────────────────────────────────── */
.nuda-neon-flicker {
  --nuda-nf-clr: #e4ff54;
  --nuda-nf-text: #fafafa;

  font-size: 2rem;
  font-weight: 700;
  color: var(--nuda-nf-text);
  animation: nuda-neon-flicker 4s linear infinite;
}

@keyframes nuda-neon-flicker {
  0%, 18%, 22%, 25%, 53%, 57%, 100% {
    text-shadow:
      0 0 4px  var(--nuda-nf-text),
      0 0 12px var(--nuda-nf-clr),
      0 0 32px var(--nuda-nf-clr),
      0 0 64px #a3b800;
  }
  20%, 24%, 55% {
    text-shadow: none;
  }
}

/* ── Accessibility ──────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .nuda-neon-flicker {
    animation: none;
    text-shadow:
      0 0 4px  var(--nuda-nf-text),
      0 0 18px var(--nuda-nf-clr);
  }
}

How to use Neon Flicker Text

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 text effects components

← Browse all NudaUI components