Skip to content
Website Sections

ProcessTrain

A how-it-works section told as a railway line at dusk. Each step is a station with a yellow name board. The train runs from one to the next as the land slides past on three layers, a coach lights up at each stop, and pressing any stop sends it there, backwards if needed.

Download
  • React
  • Tailwind CSS v4
  • motion

Props

NameTypeDefaultWhat it does
steps{ title: string; text: string; time?: string }[]4 stepsOne station each, in order. Short titles fit the name board best.
holdnumber3800Ms at a station before it runs on by itself. Stops once a visitor picks a stop.
onArrive(index: number) => void-Called when the train stops at a station.
classNamestring"w-full max-w-3xl"Set the width here. Everything scales with it.