Platform
VaultVault
  • Free15
  • Navigation19
  • Buttons9
  • Scroll55
  • Text27
  • Sliders & marquees19
  • Gallery & images67
  • Cursor24
  • Page transitions10
  • Loaders2
  • Backgrounds10
  • UI components33
ButtonsPart of ProButtons
IconsPart of ProIcons
  • Interface Essentials144
  • Social Icons69
  • Payment Badges41
SavedPart of ProSaved
Support
DocumentationDocumentation
MCP serverMCP server
SettingsSettings
VaultUI componentsSliding Step Form
Split Headline RevealBrowse all 182Pinned Wipe Steps
  • Free15
  • Navigation19
  • Buttons9
  • Scroll55
  • Text27
  • Sliders & marquees19
  • Gallery & images67
  • Cursor24
  • Page transitions10
  • Loaders2
  • Backgrounds10
  • UI components33
  • Interface Essentials144
  • Social Icons69
  • Payment Badges41
Sign inSign in

Start free. The code for 15 components, no card needed.

Get 15 free

Sliding Step Form

This one is locked. Become a member to open the code for it and the rest of the Vault.

See plansTry the 15 free ones

What you'll need.

Install

  • gsap
  • CustomEase
  • MorphSVGPlugin

Setup

npm i gsapregisterPlugin(CustomEase, MorphSVGPlugin)

More like this

  • Form
  • Progress
  • SVG
  • Morph

Features.

  • Steps slide past each other in the direction you're going: forward slides left, Back slides right
  • The card's height, a progress hairline and a rolling "01 / 03" counter follow every step change
  • Each new step's title and fields rise into place through masks, just behind the slide
  • Labels float up and shrink on focus, with an underline drawn under the field; they stay up once there's a value, autofill included
  • Next checks the step first: a missing or malformed field shakes and rolls its message in, and the message rolls away as soon as the value is fine
  • The last step fills a review list from the answers
  • The final button squeezes into a loading dot, spins, then stretches out as a "Booked" pill while its plane icon morphs into a check
  • Enter moves on from inputs and selects; the arrow keys page the steps when focus isn't in a field
  • Screen readers hear each step change and the result through a polite status line; bad fields get aria-invalid
  • Respects prefers-reduced-motion: every move runs 20× faster
  • GSAP with CustomEase and MorphSVGPlugin; no network request of its own

How to get it right.

Keep steps short

Two or three fields a step is what makes the slide feel quick. If a step needs a scroll, split it.

Hook up your request

The wait in the booking morph is a one-second stand-in. Listen for stf:done on the root (its detail.values holds the form values) to send them, or replace the WAIT step in the script with your own request if the dot should spin until it answers.

Write the messages as help

Each field's message is the only thing a person reads when it shakes. Say what to do ("Use an address like you@example.com"), not what went wrong.

Adding a caption

It ships with only the counter in the header. Add <span class="stf_eyebrow"> after .stf_counter and it sits at the far end of the row.

Match the review rows to field names

data-stf-review="email" shows the value of the field named email. Selects show the chosen option's text.

Variations.

  • Default — 0.3s steps that slide 2.5em
  • Cross-fade — data-au-slide="0": steps fade through each other in place
  • Slow and wide — data-au-duration="0.6" and data-au-slide="5" for a calmer, more travelled change
  • More steps — add [data-stf-step] blocks; the counter total and progress follow the count
  • Your colours — override --stf-fg, --stf-muted, --stf-line, --stf-button and --stf-error on .stf_card

Where it fits.

  • Bookings — a room, a table, a slot: the demo's hut booking
  • Enquiry forms — who you are, what you need, check and send
  • Sign-ups and onboarding — a few questions at a time instead of one long page

Frequently asked.

No. It runs the booking morph and fires stf:done with the values. Send them from that event, or put your fetch where the script waits.

Text, email, textarea and select are styled and checked: required means it needs a value, and type="email" also needs something that looks like an address. Checkboxes and radios aren't checked by the script.

No. Once booked, Back and Next are disabled. Call window.au.StepForm.refresh() to start again (typed values are kept).

Labels point at their fields by id. Two forms on one page need different IDs; the React version prefixes them for you.

The current step out of the total: one third on step one of three, full on the last.

Related components.

Pro

Image Slide Tabs

Click

Pro

Glow Band Sheet Modal

Click

Pro

Expanding Card Modal

Click