StealThis .dev

Mobile Stepper

A dot/step indicator for onboarding flows with animated transitions between steps. Includes skip and next/get-started buttons. No libraries.

Open in Lab
css vanilla-js
Targets: JS HTML

Code

Mobile Stepper

A fullscreen onboarding carousel with dot step indicators. Slides transition with a smooth horizontal animation. The dot indicator stretches the active dot into a pill shape.

How it works

  1. Slides are positioned absolutely and transition via opacity + translateX
  2. Active dot expands to a pill using a CSS width transition
  3. “Next” advances the step; the last step shows “Get Started”
  4. “Skip” jumps directly to the final step

Customization

  • Swap the illustration area with real images or Lottie animations
  • Add swipe-tabs-style touch swipe support for gesture navigation
  • Adjust --accent to retheme the entire component

When to use it

  • App onboarding flows (2–5 steps)
  • Feature introduction overlays
  • Tutorial wizards