The v-enter
transition class has been renamed to v-enter-from
and the v-leave
transition class has been renamed to v-leave-from
.
Before v2.1.8, we had two transition classes for each transition direction: initial and active states.
In v2.1.8, we introduced v-enter-to
to address the timing gap between enter/leave transitions. However, for backward compatibility, the v-enter
name was untouched:
.v-enter, .v-leave-to { opacity: 0; } .v-leave, .v-enter-to { opacity: 1; }
This became confusing, as enter and leave were broad and not using the same naming convention as their class hook counterparts.
In order to be more explicit and legible, we have now renamed these initial state classes:
.v-enter-from, .v-leave-to { opacity: 0; } .v-leave-from, .v-enter-to { opacity: 1; }
It's now much clearer what the difference between these states is.
The <transition>
component's related prop names are also changed:
leave-class
is renamed to leave-from-class
(can be written as leaveFromClass
in render functions or JSX)enter-class
is renamed to enter-from-class
(can be written as enterFromClass
in render functions or JSX).v-enter
to .v-enter-from
.v-leave
to .v-leave-from
© 2013–present Yuxi Evan You
Licensed under the MIT License.
https://v3.vuejs.org/guide/migration/transition.html