Vibary.ai
← Vibe Coding

Onboarding Step Transition

The next panel enters from the right as the current one leaves left, with the progress bar advancing behind them.

onboardingcalmpremiuminteraction · finite · intermediate · ~0.5s
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.

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

/**
 * Vibary · Onboarding Step Transition
 *
 * The next panel slides in from the right while the current one leaves
 * to the left, and the progress bar advances underneath them.

About this pattern

Paging through a setup flow, where the direction of travel is the message: forward sends the old panel left and brings the new one in from the right, back reverses both. The progress bar advances at the same time, so the user always knows how much is left without reading a counter. The card height is fixed and the panels are absolutely positioned, because a frame that resizes mid-slide fights the horizontal movement. Panels are mostly text, so they translate and fade only — never scale, never rebound.

Onboarding flowMulti-step formSetup wizardPermission sequence

Where it shows up

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

  • 10:15
    Set up your workspaceStep 2 of 4
    What should we call it?
    Ridgeline
    Who else is joining?
    3 invited
    Next
    Onboarding flow

    Setup questions paged horizontally with a progress indicator above.

Related patterns