My current transition block component is set up like this:
<div
v-if="!surveyResultIsReady"
class="vh-md-40 position-relative"
>
<transition
name="custom-classes-transition"
enter-active-class="animated slideInRight"
leave-active-class="animated slideOutLeft"
>
<div
v-bind:key="step"
class="w-100 position-absolute mx-auto"
>
<SurveyActiveQuestion
v-if="!surveyResultIsReady"
v-bind:question="activeQuestion()"
v-bind:totalQuestions="totalQuestions"
v-on:activeQuestionAnswered="activeQuestionAnswered()"
/>
</div>
</transition>
</div>
The this.step
value (v-bind:key="step"
) controls the transition.
So far, the transition works well when this.step++
, swiping from left to right. However, when this.step--
, the transition remains the same direction.
I am looking for a way to make the transition swipe back from right to left when using this.step--
. How can I achieve this?