Reputation: 3552
With Vue.js, when I delete a reply, I use a "transition-group" to fadeout the reply.
However, if I'm changing the reply page, I also see the fadeout.
How can I disable the fadeout of replies when I change the replies page ?
<transition-group name="list" tag="div">
<div v-for="(reply, index) in items" :key="reply.id">
<reply :data="reply" @deleted="remove(index)"></reply>
</div>
</transition-group>
<paginator :dataSet="dataSet" @updated="fetch"></paginator>
css :
.list-enter, .list-leave-to {
transition: all 0.5s;
opacity: 0;
}
Upvotes: 0
Views: 1791
Reputation: 26899
<transition-group>
name="list"
a property that reacts to data
with :name="animToUse"
animToUse
as a property on data
animToUse
to a non transition whenever you don't want the transitionIf you are using vue-router see it's docs about transitions: Route-Based Dynamic Transition
Upvotes: 4