Multi-step form
Stepper · Wizard form · Modulo guidato · Formulario por pasos · Progress stepper · Checkout steps · Procedura guidata
A long form split into small steps, with a bar at the top showing how far along you are. With each «Next» the finished step turns into a tick, the progress line fills and the content slides sideways to the next question.
- Era
- 2008 – today
- Origin
- Web (globale)
- Use
- Mainstream
Live demo
View code
<div class="card"><div class="st"><div class="ln"><s></s></div><p><i>1</i><span>Giorno</span></p><p><i>2</i><span>Bici</span></p><p><i>3</i><span>Dati</span></p><p><i>4</i><span>Conferma</span></p></div>
<div class="vp"><div class="sl"><section><h3>Quando vuoi partire?</h3><p class="f">📅 Domenica 18 ottobre</p><p class="f">🕗 08:00</p></section><section><h3>Scegli la bici</h3><p class="f on">🚲 City bike · 12 €</p><p class="f">⚡ E-bike · 25 €</p></section><section><h3>I tuoi dati</h3><p class="f">Giulia Rossi</p><p class="f">giulia@example.it</p></section><section><h3>Tutto pronto! 🎉</h3><p class="f">Ritiro al Caffè Velò alle 08:00</p></section></div></div><p class="bt"><span>← Indietro</span><b>Avanti →</b></p></div>
<script>
const ps=[...document.querySelectorAll('.st p')],sl=document.querySelector('.sl'),ln=document.querySelector('.ln s');let k=0;
const show=()=>{ps.forEach((p,i)=>{p.className=i<k?'done':i==k?'cur':'';p.querySelector('i').textContent=i<k?'✓':i+1});sl.style.transform=`translateX(${-k*25}%)`;ln.style.width=(k/3*100)+'%'};show();
setInterval(()=>{k=(k+1)%4;show()},1300);
</script> body{background:#F4F6FA;font-family:Inter,sans-serif;color:#1F2937;display:grid;place-items:center}
.card{width:420px;background:#fff;border-radius:16px;box-shadow:0 10px 30px #1f29371a;padding:18px 22px}
.st{position:relative;display:flex;justify-content:space-between;margin-bottom:14px}.ln{position:absolute;left:16px;right:16px;top:15px;height:3px;background:#D1D5DB}.ln s{display:block;height:100%;width:0;background:#4F46E5;transition:width .4s cubic-bezier(.4,0,.2,1)}
.st p{position:relative;margin:0;display:flex;flex-direction:column;align-items:center;gap:4px;font-size:10.5px;color:#6b7280}.st i{width:32px;height:32px;border-radius:50%;display:grid;place-items:center;font-style:normal;font-weight:700;background:#fff;border:2px solid #D1D5DB;transition:all .3s}
.st .cur i{border-color:#4F46E5;color:#4F46E5;box-shadow:0 0 0 4px #4F46E522}.st .cur{color:#4F46E5;font-weight:600}.st .done i{background:#22C55E;border-color:#22C55E;color:#fff}
.vp{overflow:hidden}.sl{display:flex;width:400%;transition:transform .4s cubic-bezier(.4,0,.2,1)}section{width:25%;padding-right:4px}
h3{margin:0 0 8px;font-size:16px}.f{margin:0 0 6px;border:1.5px solid #D1D5DB;border-radius:10px;padding:9px 12px;font-size:12.5px}.f.on{border-color:#4F46E5;background:#4F46E50d}
.bt{display:flex;justify-content:space-between;align-items:center;margin:10px 0 0;font-size:13px}.bt span{color:#6b7280}.bt b{background:#4F46E5;color:#fff;border-radius:10px;padding:9px 18px}
@media (prefers-reduced-motion: reduce){.sl,.ln s{transition:none}} Characteristics
- Numbered circles joined by a line at the top
- Completed steps with a tick and solid colour
- Line filling with a smooth animation
- Content sliding sideways between steps
- «Back» and «Next» buttons fixed at the bottom
Palette
Click a swatch to copy it
Typography
Headings · Inter Multi-step form
Body · Inter A long form split into small steps, with a bar at the top showing how far along you are. With each «Next» the finished step turns into a tick, the progress line fills and the content slides sideways to the next question.
Motion
- Easing
ease-in-out / cubic-bezier(.4,0,.2,1)- Typical duration
- 250–400 ms per la linea e lo scorrimento del contenuto
- Techniques
- transform translateX sul contenitore dei passi, transition sulla larghezza della barra, aria-current step, gestione del focus sul primo campo
Accessibility (reduced motion)
Content swaps without sliding and the bar updates instantly.
Prompt for your agent
Copy and paste into your prompt to have an agent or image generator reproduce this style.
For web pages and UI
Design the web page or interface in this style: Multi-step form (Stepper, Wizard form). A long form split into small steps, with a bar at the top showing how far along you are. With each «Next» the finished step turns into a tick, the progress line fills and the content slides sideways to the next question. Characteristics: Numbered circles joined by a line at the top, Completed steps with a tick and solid colour, Line filling with a smooth animation, Content sliding sideways between steps, «Back» and «Next» buttons fixed at the bottom. Palette: #FFFFFF, #F4F6FA, #4F46E5, #22C55E, #1F2937, #D1D5DB. Typography: headings in Inter, body text in Inter (Google Fonts or equivalents). Mood: rational, clean, calm. Motion: easing ease-in-out / cubic-bezier(.4,0,.2,1), typical duration 250–400 ms per la linea e lo scorrimento del contenuto; techniques: transform translateX sul contenitore dei passi, transition sulla larghezza della barra, aria-current step, gestione del focus sul primo campo. With prefers-reduced-motion: Content swaps without sliding and the bar updates instantly. References: Checkout degli e-commerce, Moduli di prenotazione, Material Design Steppers, GOV.UK pattern «una cosa per pagina».
Relations
Similar to
Contrasts with
References
- Checkout degli e-commerce
- Moduli di prenotazione
- Material Design Steppers
- GOV.UK pattern «una cosa per pagina»