0👍
<transition-group>
is for animating (or transitioning) individual elements within a group (rows in a table, items in a list).
If you want to animate (or transition) the entire group as a whole, which I think is what you’re asking, use <transition>
instead.
<transition name="ballmove" ...>
<ul v-if="showProducts">
<li v-for="(menu, index) in todos" ...>
</ul>
<transition>
- [Vuejs]-Data value not updated with tabs in Vue js
- [Vuejs]-Cannot read property of "then" of undefined APOLLO GRAPHQL
0👍
I found adding a fade to the group then adding a transition class to the li got something that I was looking for. I was really wanted to have each item in the list load animation bouncein, so when you hover over a button the items in the list would load individually, but I guess what I’ve done will have to work for now.
<transition name="fade" mode="out-in" >
<ul v-if="showProducts">
<li class="bouncein" v-for="(menu, index) in todos" ...>
</ul>
</transition>
- [Vuejs]-How to resolve error of function do not called after selecting from the select list?
- [Vuejs]-"Cannot GET" error in REST API using Vue.js
Source:stackexchange.com