I want to make left and right slide with react-transition-group. When I press next button it comes right (next step) and when I click go back button, I want to come it from left. My code always gets it from right side. How can I achieve something like this
.onboarding-screen
display flex
flex-direction column
flex-grow 1
position absolute
width 100%
height 100%
align-items center
&.step-enter
transform translateX(100%)
transition(all 1s)
&.step-enter-active
transform translateX(0%)
transition(all 1s)
&.step-enter-done
position relative
&.step-exit
transform translateX(-100%)
transition(all 1s)
&.step-exit-active
transform translateX(-100%)
transition(all 1s)
&.step-exit-done
position relative