Wizard Card Slide
A copy-paste steppers & wizards component in pure HTML, CSS & vanilla JS. Zero dependencies, framework-agnostic, MIT-licensed.
Steppers & WizardsHTMLJavaScriptCSSany framework
Step 2 / 3Profile
Copy into your project
HTML
<div class="nuda-wcard">
<div class="nuda-wcard__head">
<span>Step 2 / 3</span>
<span>Profile</span>
</div>
<div class="nuda-wcard__viewport">
<div class="nuda-wcard__track" style="transform: translateX(-100%)">
<div class="nuda-wcard__panel">First panel</div>
<div class="nuda-wcard__panel is-active">
<div class="nuda-wcard__title">Tell us your name</div>
<input placeholder="Jane Doe" />
<button>Continue</button>
</div>
<div class="nuda-wcard__panel">Third panel</div>
</div>
</div>
</div>JavaScript
const root = document.querySelector('.nuda-wcard');
const track = root.querySelector('.nuda-wcard__track');
const panels = root.querySelectorAll('.nuda-wcard__panel');
const next = root.querySelector('.nuda-wcard__panel.is-active button');
let index = 1;
next?.addEventListener('click', () => {
index = Math.min(panels.length - 1, index + 1);
track.style.transform = `translateX(-${index * 33.333}%)`;
panels.forEach((p, i) => p.classList.toggle('is-active', i === index));
});CSS
.nuda-wcard {
display: flex;
flex-direction: column;
background: rgba(255,255,255,.02);
border: 1px solid rgba(255,255,255,.06);
border-radius: 14px;
width: 100%;
max-width: 280px;
overflow: hidden;
}
.nuda-wcard__head {
display: flex;
justify-content: space-between;
align-items: center;
padding: 10px 14px;
color: #a0a0a8;
font-size: 11px;
border-bottom: 1px solid rgba(255,255,255,.04);
}
.nuda-wcard__viewport {
overflow: hidden;
}
.nuda-wcard__track {
display: flex;
width: 300%;
transition: transform .55s cubic-bezier(.16,1,.3,1);
}
.nuda-wcard__panel {
flex: 0 0 33.333%;
padding: 18px 14px;
color: #63636e;
font-size: 11px;
display: flex;
flex-direction: column;
gap: 8px;
}
.nuda-wcard__panel.is-active {
color: #fafafa;
}
.nuda-wcard__title {
color: #fafafa;
font-size: 13px;
font-weight: 600;
}
.nuda-wcard__panel input {
padding: 8px 10px;
background: rgba(0,0,0,.3);
border: 1px solid rgba(255,255,255,.08);
border-radius: 8px;
color: #fafafa;
font-size: 12px;
outline: none;
transition: border-color .2s,box-shadow .25s;
}
.nuda-wcard__panel input:focus {
border-color: #e4ff54;
box-shadow: 0 0 0 3px rgba(228,255,84,.12);
}
.nuda-wcard__panel button {
padding: 8px;
background: #e4ff54;
color: #09090b;
border: 0;
border-radius: 8px;
font-size: 12px;
font-weight: 600;
cursor: pointer;
transition: filter .2s,transform .15s;
}
.nuda-wcard__panel button:hover {
transform: translateY(-1px);
filter: brightness(1.08);
}
How to use Wizard Card Slide
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.