Neon Glow
A copy-paste text effects component in pure HTML & CSS. Zero dependencies, framework-agnostic, MIT-licensed.
Text EffectsHTMLCSSany framework
Neon Glow
Copy into your project
HTML
<!-- Neon Glow — text with animated neon glow effect -->
<span class="nuda-neon-glow">Neon Glow</span>CSS
/* ── Neon Glow ───────────────────────────────────────────────
Customize:
--nuda-neon-clr : glow color
--nuda-neon-text : text color (usually white)
--nuda-neon-speed : pulse duration
──────────────────────────────────────────────────────────── */
.nuda-neon-glow {
--nuda-neon-clr: #bc13fe;
--nuda-neon-text: #fff;
--nuda-neon-speed: 2s;
font-size: 2rem;
font-weight: 700;
color: var(--nuda-neon-text);
animation: nuda-neon-pulse var(--nuda-neon-speed) ease-in-out infinite;
}
@keyframes nuda-neon-pulse {
0%, 100% {
text-shadow:
0 0 4px var(--nuda-neon-text),
0 0 11px var(--nuda-neon-text),
0 0 19px var(--nuda-neon-text),
0 0 40px var(--nuda-neon-clr),
0 0 80px var(--nuda-neon-clr),
0 0 90px var(--nuda-neon-clr);
}
50% {
text-shadow:
0 0 2px var(--nuda-neon-text),
0 0 5px var(--nuda-neon-text),
0 0 10px var(--nuda-neon-text),
0 0 20px var(--nuda-neon-clr),
0 0 40px var(--nuda-neon-clr),
0 0 50px var(--nuda-neon-clr);
}
}
/* ── Accessibility ──────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
.nuda-neon-glow {
animation: none;
text-shadow:
0 0 4px var(--nuda-neon-text),
0 0 20px var(--nuda-neon-clr);
}
}How to use Neon Glow
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.