Neon Script
A copy-paste neon & glow component in pure HTML & CSS. Zero dependencies, framework-agnostic, MIT-licensed.
Neon & GlowHTMLCSSany framework
handwritten glow
Copy into your project
HTML
<!-- Neon Script — a cursive line draws itself via stroke-dashoffset -->
<div class="nuda-ne2-script">
<svg class="nuda-ne2-script__svg" viewBox="0 0 200 80" fill="none" aria-hidden="true">
<path class="nuda-ne2-script__path" d="M10 60 C 30 10, 50 10, 60 40 S 90 70, 100 40 S 130 10, 140 40 S 170 70, 190 30" stroke="#e4ff54" stroke-width="4" stroke-linecap="round" />
</svg>
<p class="nuda-ne2-script__caption">handwritten glow</p>
</div>CSS
.nuda-ne2-script {
display: flex;
flex-direction: column;
align-items: center;
gap: 8px;
padding: 18px;
background: #09090b;
border-radius: 12px;
}
.nuda-ne2-script__svg {
width: 200px;
height: 80px;
overflow: visible;
filter: drop-shadow(0 0 6px #e4ff54) drop-shadow(0 0 16px rgba(228,255,84,.6));
}
.nuda-ne2-script__path {
stroke-dasharray: 600;
stroke-dashoffset: 600;
animation: _nuda-ne2script 4.5s ease-in-out infinite;
}
.nuda-ne2-script__caption {
margin: 0;
font-size: 12px;
color: #cfcfcf;
letter-spacing: .04em;
}
@keyframes _nuda-ne2script {
0% {
stroke-dashoffset: 600;
opacity: 1;
}
55% {
stroke-dashoffset: 0;
opacity: 1;
}
82% {
stroke-dashoffset: 0;
opacity: 1;
}
92% {
opacity: 0;
}
93% {
stroke-dashoffset: 600;
opacity: 0;
}
100% {
opacity: 1;
}
}
@media (prefers-reduced-motion:reduce) {
.nuda-ne2-script__path {
animation: none;
stroke-dashoffset: 0;
opacity: 1;
}
}
How to use Neon Script
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.