jcmcneal / react-step-wizard

A modern flexible step wizard component built for React.
MIT License
583 stars 126 forks source link

Vertical transitions instead of horizontal #74

Closed krichdev closed 4 years ago

krichdev commented 4 years ago

Is there a way to use vertical transitions instead of the horizontal ones?

jcmcneal commented 4 years ago

Yep. The transitions are all based on CSS animations. You'll have to create your own animations and pass those classes in like this:

const transitions = {
  enterRight: 'your custom css transition classes',
  enterLeft : 'your custom css transition classes',
  exitRight : 'your custom css transition classes',
  exitLeft  : 'your custom css transition classes'
}
<StepWizard transitions={transitions}>...</StepWizard>
BFMarks commented 1 year ago

This does not seem to work anymore