Skip to content

Commit 50e0bf1

Browse files
authored
review: src/guide/extras/animation.md (vuejs#153) (vuejs#154)
1 parent 45fbc5a commit 50e0bf1

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

src/guide/extras/animation.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import AnimateWatcher from './demos/AnimateWatcher.vue'
77

88
# 动画技巧 {#animation-techniques}
99

10-
Vue 提供了 [`<Transition>`](/guide/built-ins/transition.html)[`<TransitionGroup>`](/guide/built-ins/transition-group.html) 组件来处理进入、离开或是列表的过渡。但是在网页上制作动画的方式非常多,即使是在一个 Vue 应用中。这里我们会探讨一些别的技巧。
10+
Vue 提供了 [`<Transition>`](/guide/built-ins/transition.html)[`<TransitionGroup>`](/guide/built-ins/transition-group.html) 组件来处理进入、离开和列表的过渡。然而,在网页上制作动画的方式非常多,即使是在一个 Vue 应用中也是如此。这里我们会探讨一些别的技巧。
1111

1212
## 基于 CSS 类的动画 {#class-based-animations}
1313

@@ -51,8 +51,8 @@ export default {
5151

5252
```vue-html
5353
<div :class="{ shake: notActivated }">
54-
<button @click="warnDisabled">点击此处</button>
55-
<span v-if="disabled">此功能未激活。</span>
54+
<button @click="warnDisabled">Click me</button>
55+
<span v-if="disabled">This feature is disabled!</span>
5656
</div>
5757
```
5858

@@ -86,7 +86,7 @@ export default {
8686

8787
## 状态驱动的动画 {#state-driven-animations}
8888

89-
某些过渡效果可以通过插值来应用,例如,通过在交互发生时将样式绑定到元素。看看下面这个示例
89+
有些过渡效果可以通过动态地插值来实现,例如,在交互时动态地绑定样式到元素,以这个例子为例
9090

9191
<div class="composition-api">
9292

@@ -123,7 +123,7 @@ export default {
123123
:style="{ backgroundColor: `hsl(${x}, 80%, 50%)` }"
124124
class="movearea"
125125
>
126-
<p>移动鼠标穿过这个 div...</p>
126+
<p>Move your mouse across this div...</p>
127127
<p>x: {{ x }}</p>
128128
</div>
129129
```
@@ -181,7 +181,7 @@ export default {
181181
</div>
182182

183183
```vue-html
184-
输入一个数字:<input v-model.number="number" />
184+
Type a number: <input v-model.number="number" />
185185
<p>{{ tweened.number.toFixed(0) }}</p>
186186
```
187187

src/guide/extras/demos/AnimateWatcher.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ watch(
1717

1818
<template>
1919
<div class="demo">
20-
输入一个数字:<input v-model.number="number" />
20+
Type a number: <input v-model.number="number" />
2121
<p class="big-number">{{ tweened.number.toFixed(0) }}</p>
2222
</div>
2323
</template>

0 commit comments

Comments
 (0)