Vibary.ai
← Vibe Coding

Wizard Step Advance

The rail fills toward the step you are entering while the panel travels the way you sent it.

navigationcalmpremiuminteraction · finite · intermediate · ~0.4s
Interactive · click to play
Variant

The animated component in this preview is rendered from the canonical file shown here. The surrounding demo shell only provides context and is not part of the copied code.

427 lines · react + motion only
import { useState } from "react";
import { AnimatePresence, motion, useReducedMotion } from "motion/react";

/**
 * Vibary · Wizard Step Advance
 *
 * Two things move on every advance and they agree with each other: the
 * rail fills toward the step you are entering, and the panel travels in

About this pattern

A multi-part flow where the marker and the content are saying the same thing at the same time: the rail segment fills from the left toward the step being entered, the marker behind it takes its completion mark, and the panel travels in that same direction — reversed exactly when you go back. Agreement is the whole point, because a header that advances while the body slides the other way is how a flow starts feeling arbitrary. The panels are text, so they translate and fade and never scale, on springs damped hard enough that no field overshoots its resting line. The one thing that pops is the completion mark, which is a glyph and can carry a little more life than a paragraph can. The body is a fixed height so the buttons underneath never hop.

Account setup flowBilling configurationCheckout stagesGuided import

Where it shows up

Screens we drew to show where this motion usually sits. Illustrations, not captures of any product.

  • 10:15
    Payment
    Card number4242 4242 4242 4242Name on cardN. Bergström
    Expiry04 / 28CVC•••
    Subtotal$156.00Shipping$0.00Tax$13.65Total$169.65
    Pay $169.65
    Checkout

    A row of stages that fills as the buyer moves through information, shipping and payment.

Related patterns