<div id="app">
<button @click="show = !show">Toggle</button>
<transition :duration="500" enter-active-class="bounceIn" leave-active-class="bounceOut">
<div class="box animated" v-if="show"></div>
</transition>
</div>
.box{
width: 200px;
height: 200px;
background: red;
}
let app=new Vue({
el: "#app",
data: {
show: false
}
})