Answer the question
In order to leave comments, you need to log in
How to assign a variable to the transition name in Vue?
There is a piece of the component:
<div>
<ul class="page_indicator">
<li class="indicator1" :class="{active: currentPageNumber == '1'}"><transition :class="{bar_animate_in: currentPageNumber == '1'}"><div class="bar"></div></transition></li>
<li class="indicator2" :class="{active: currentPageNumber == '2'}"><div class="bar"></div></li>
<li class="indicator3" :class="{active: currentPageNumber == '3'}"><div class="bar"></div></li>
<li class="indicator4" :class="{active: currentPageNumber == '4'}"><div class="bar"></div></li>
</ul>
</div>
data(){
return{
pages: ['1', '2', '3', '4'],
pagesHistory: ['1'],
previousPageNumber: '',
currentPageNumber: '',
routeAnimation1: ''
}
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question