Experiencing an issue with the Vue.js transition feature. Check out this link for reference. When the transition enters, it works smoothly, but when transitioning out, it's not functioning properly.
File: genetic.vue
<transition name="slide-fade">
<div class="father_select" v-if="selecting == 'father'">
<flickity
:options="flickityOptions"
ref="flickity"
@init="api=$event.flickityApi"
>
<div class="carousel-cell" v-on:click="setFather('layer9.png')"><img src="layer9.png"/></div>
<div class="carousel-cell" v-on:click="setFather('mama.png')"><img src="mama.png"/></div>
<div class="carousel-cell"><img src="../layer9.png" /></div>
</flickity>
</div>
</transition>
File: style.css
.slide-fade-enter-active {
transition: all .3s ease;
}
.slide-fade-leave-active {
transition: all .3s cubic-bezier(1.0, 0.5, 0.8, 1.0);
}
.slide-fade-enter, .slide-fade-leave-to {
transform: translateX(10px);
opacity: 0;
}