Vue · Middle · Question 29 of 75
How does <Transition name="fade"> animate an element?
- ✓Correct answer: It adds classes like
fade-enter-from,fade-enter-active,fade-leave-towhen the element enters or leaves - 2It animates with JavaScript only, CSS is not supported
- 3It animates every change of any prop
Explanation
It works with v-if, v-show, dynamic components and key changes. <TransitionGroup> handles lists, including move animations.