I've set up a navigation menu with mouseover and mouse leave events to toggle a dropdown by changing a boolean value.
Now, I'm trying to apply different animations to the list items in the dropdown compared to the surrounding box, but I'm facing difficulty triggering unique transitions for each.
The transition effects only seem to work when I use v-if on individual list items rather than on the entire div element.
I've provided an example on jsfiddle
<div id="app">
<div class="nav">
<div @mouseover="showProducts = true" @mouseleave="showProducts =
false" class="nav__list">home</div>
<div class="nav__list">about</div>
<div class="nav__list">pics</div>
<div class="nav__dropdown">
<transition-group
name="ballmove"
enter-active-class="bouncein"
tag="ul"
>
<li v-if="showProducts" v-for="(menu, index) in todos" :key="index">{{menu.text}}</li>
</transition-group>
</div>