Vibary.ai
← Vibe Coding

Checkout Step Progress

The finished stage folds into a one-line recap while the following one opens and the rail fills.

commercepremiumcalminteraction · finite · intermediate · ~0.6s
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.

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

/**
 * Vibary · Checkout Step Progress
 *
 * Checkout advances by folding what is settled out of the way: the step
 * you just finished collapses into a one-line summary, the following one

About this pattern

Checkout gets shorter as you go. Closing a stage folds its fields away on a short eased height tween and leaves a single recap line in their place, the stage below opens into the room that freed up, and the connector beside them fills to mark what is behind you. Keeping exactly one stage open means the page never grows while it is being read, and the recap lines double as the edit affordance. Nothing springs on height — a form that bounces open reads as rubber, not as progress.

Multi-stage checkoutAddress and payment captureGuided purchase flowBooking flow with recap lines

Where it shows up

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

  • 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

    Each closed section becomes a single editable recap line above the open one.

Related patterns