I have an animation that works on other components but does not work with this one. I tried <transition-group> with no luck as well. The row simply disappears without any animation.
<transition name="card-animation">
<tr is="employee-row"
v-for="employee in employees"
:employee="employee"
:selectedOffice='selectedOffice'
:new_hire_location_options="new_hire_location_options"
v-on:fire='fireEmployee(employee)'
v-if="(employee.location.name == selectedOffice || selectedOffice == 'show all')">
</tr>
</transition>
Here's the CSS
.card-animation-enter-active, .card-animation-leave-active {
transition: transform 0.25s ease-out, opacity 0.25s ease-out;
}
.card-animation-enter, .card-animation-leave-to {
transform: scale(0);
opacity: 0;
}
What is wrong with my code?