I found that the transition doesn't work between two div elements as following:
<transition name="fade">
<div v-if="show">111</div>
<div v-else>222</div>
</transition>
but it works if there is only one div element like:
<transition name="fade">
<div v-if="show">111</div>
<p v-else>222</p>
</transition>
is that a vue 2 bug ? or I just can't use it with two div elements?
How to do it with two div elements ..?