You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -92,12 +92,19 @@ When an element wrapped in a `transition` component is inserted or removed, this
92
92
93
93
### Transition Classes
94
94
95
-
There are four classes applied for enter/leave transitions.
95
+
There are six classes applied for enter/leave transitions.
96
96
97
-
1.`v-enter`: Starting state for enter. Applied before element is inserted, removed after one frame.
98
-
2.`v-enter-active`: Active and ending state for enter. Applied before element is inserted, removed when transition/animation finishes.
99
-
3.`v-leave`: Starting state for leave. Applied when leave transition is triggered, removed after one frame.
100
-
4.`v-leave-active`: Active and ending state for leave. Applied when leave transition is triggered, removed when the transition/animation finishes.
97
+
1.`v-enter`: Starting state for enter. Added before element is inserted, removed one frame after element is inserted.
98
+
99
+
2.`v-enter-active`: Active state for enter. Applied during the entire entering phase. Added before element is inserted, removed when transition/animation finishes. This class can be used to define the duration, delay and easing curve for the entering transition.
100
+
101
+
3.`v-enter-to`: **Only available in versions >2.1.8.** Ending state for enter. Added one frame after element is inserted (at the same time `v-enter` is removed), removed when transition/animation finishes.
102
+
103
+
4.`v-leave`: Starting state for leave. Added immediately when a leaving transition is triggered, removed after one frame.
104
+
105
+
5.`v-leave-active`: Active state for leave. Applied during the entire leaving phase. Added immediately when leave transition is triggered, removed when the transition/animation finishes. This class can be used to define the duration, delay and easing curve for the leaving transition.
106
+
107
+
6.`v-leave-to`: **Only available in versions >2.1.8.** Ending state for leave. Added one frame after a leaving transition is triggered (at the same time `v-leave` is removed), removed when the transition/animation finishes.
@@ -320,8 +328,10 @@ You can also specify custom transition classes by providing the following attrib
320
328
321
329
-`enter-class`
322
330
-`enter-active-class`
331
+
-`enter-to-class` (> 2.1.8 only)
323
332
-`leave-class`
324
333
-`leave-active-class`
334
+
-`leave-to-class` (> 2.1.8 only)
325
335
326
336
These will override the conventional class names. This is especially useful when you want to combine Vue's transition system with an existing CSS animation library, such as [Animate.css](https://daneden.github.io/animate.css/).
0 commit comments