Self-Drawing Connector Stepper
A copy-paste steppers & wizards component in pure HTML & CSS. Zero dependencies, framework-agnostic, MIT-licensed.
Steppers & WizardsHTMLCSSany framework
1234
Copy into your project
HTML
<div class="nuda-st2-line-draw">
<div class="nuda-st2-line-draw__track">
<span class="nuda-st2-line-draw__fill"></span>
</div>
<div class="nuda-st2-line-draw__nodes">
<span class="is-done">1</span>
<span class="is-done">2</span>
<span class="is-active" aria-current="step">3</span>
<span>4</span>
</div>
</div>CSS
.nuda-st2-line-draw {
width: 100%;
max-width: 280px;
padding: 14px 0 4px;
}
.nuda-st2-line-draw__track {
position: relative;
height: 2px;
margin: 0 15px;
background: rgba(255,255,255,.08);
}
.nuda-st2-line-draw__fill {
position: absolute;
inset: 0;
background: #e4ff54;
transform-origin: left;
transform: scaleX(0);
animation: _nuda-st2linedraw-grow 1.4s cubic-bezier(.16,1,.3,1) .1s forwards;
}
.nuda-st2-line-draw__nodes {
display: flex;
justify-content: space-between;
margin-top: -15px;
}
.nuda-st2-line-draw__nodes span {
display: inline-flex;
align-items: center;
justify-content: center;
width: 30px;
height: 30px;
border-radius: 50%;
background: #0c0c10;
border: 2px solid rgba(255,255,255,.12);
color: #a0a0a8;
font-size: 11px;
font-weight: 700;
transition: border-color .3s,color .3s,background .3s;
}
.nuda-st2-line-draw__nodes span.is-done {
border-color: #e4ff54;
background: #e4ff54;
color: #09090b;
}
.nuda-st2-line-draw__nodes span.is-active {
border-color: #e4ff54;
color: #e4ff54;
}
@keyframes _nuda-st2linedraw-grow {
to {
transform: scaleX(.66);
}
}
@media (prefers-reduced-motion:reduce) {
.nuda-st2-line-draw__fill {
animation: none;
transform: scaleX(.66);
}
}
How to use Self-Drawing Connector Stepper
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.