I cant add animation using transition or transition-group. I have code:
<transition mode="out-in" enter-active-class="animated zoomIn" leave-active-class="animated zoomOut">
<div key=1 v-if="$route.name !== null">
<router-view></router-view>
</div>
<div v-else key=2>
<p>First text</p>
<p>Second text</p>
</div>
</transition>
the change does not help from transtition to transition-group. Transition should surround:
<div v-if="$route.name !== null">
<router-view></router-view>
</div>
and
<p>First tex</p>
<p>Second text</p>
nullis quite an odd thing to have as a name. I would expect it to be eitherundefinedor a string.