Skip to content

Commit ed067be

Browse files
committed
Merge pull request vuejs#120 from simplesmiler/patch-1
Fix few things in transitions guide
2 parents a728f32 + 34f1782 commit ed067be

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

source/guide/transitions.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -124,22 +124,22 @@ new Vue({
124124

125125
The classes being added and toggled are based on the value of your `v-transition` directive. In the case of `v-transition="fade"`, the class `.fade-transition` will be always present, and the classes `.fade-enter` and `.fade-leave` will be toggled automatically at the right moments. When no value is provided they will default to `.v-transition`, `.v-enter` and `.v-leave`.
126126

127-
When the `show` property changes, Vue.js will insert or remove the `<p>` element accordingly, and apply transition classes as specified below:
127+
When the `show` property changes, Vue.js will insert or remove the `<div>` element accordingly, and apply transition classes as specified below:
128128

129129
- When `show` becomes false, Vue.js will:
130130
1. Call `beforeLeave` hook;
131131
2. Apply `v-leave` class to the element to trigger the transition;
132132
3. Call `leave` hook;
133133
4. Wait for the transition to finish; (listening to a `transitionend` event)
134-
5. Remove the element from the DOM and remove `v-leave` class.
134+
5. Remove the element from the DOM and remove `v-leave` class;
135135
6. Call `afterLeave` hook.
136136

137137
- When `show` becomes true, Vue.js will:
138138
1. Call `beforeEnter` hook;
139139
2. Apply `v-enter` class to the element;
140140
3. Insert it into the DOM;
141141
4. Call `enter` hook;
142-
5. Force a CSS layout so `v-enter` is actually applied, then remove the `v-enter` class to trigger a transition back to the element's original state.
142+
5. Force a CSS layout so `v-enter` is actually applied, then remove the `v-enter` class to trigger a transition back to the element's original state;
143143
6. Wait for the transition to finish;
144144
7. Call `afterEnter` hook.
145145

@@ -169,7 +169,7 @@ enter: function (el, done) {
169169

170170
## CSS Animations
171171

172-
CSS animations are applied in the same way with CSS transitions, the difference being that `v-enter` is not removed immediately after the element is inserted, but on an `animationend` callback.
172+
CSS animations are applied in the same way with CSS transitions, the difference being that `v-enter` is not removed immediately after the element is inserted, but on an `animationend` event.
173173

174174
**Example:** (omitting prefixed CSS rules here)
175175

0 commit comments

Comments
 (0)