Skip to content

Commit 6cabe1a

Browse files
authored
Fix the differences between RepeatCount and IterationCount in the Chinese document keyframe-animations.md (#708)
1 parent bad307a commit 6cabe1a

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

i18n/zh-Hans/docusaurus-plugin-content-docs/current/guides/graphics-and-animation/keyframe-animations.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -112,18 +112,18 @@ import BounceEaseInScreenshot from '/img/guides/graphics-and-animations/bounce-e
112112

113113
## 重复
114114

115-
您可以使动画重复一定次数,或无限次数。要重复有限次数的动画,请在动画元素上设置 `RepeatCount` 属性,例如:
115+
您可以使动画重复一定次数,或无限次数。要重复有限次数的动画,请在动画元素上设置 `IterationCount` 属性,例如:
116116

117117
```xml
118-
<Animation RepeatCount="5">
118+
<Animation IterationCount="5">
119119
...
120120
</Animation>
121121
```
122122

123123
要无限次地重复动画,请使用特殊值 `INFINITE`。例如:
124124

125125
```xml
126-
<Animation RepeatCount="INFINITE">
126+
<Animation IterationCount="INFINITE">
127127
...
128128
</Animation>
129129
```
@@ -133,7 +133,7 @@ import BounceEaseInScreenshot from '/img/guides/graphics-and-animations/bounce-e
133133
默认情况下,动画正向播放,即它按照缓动函数的曲线从左向右进行。您可以通过设置动画元素的 `PlaybackDirection` 属性来改变这种行为。例如:
134134

135135
```xml
136-
<Animation RepeatCount="9" PlaybackDirection="AlternateReverse">
136+
<Animation IterationCount="9" PlaybackDirection="AlternateReverse">
137137
...
138138
</Animation>
139139
```
@@ -147,7 +147,7 @@ import BounceEaseInScreenshot from '/img/guides/graphics-and-animations/bounce-e
147147
动画的填充模式属性定义了动画运行后,属性如何持续保留或在运行之间的任何间隙中显示。例如:
148148

149149
```xml
150-
<Animation RepeatCount="9" FillMode="Backward">
150+
<Animation IterationCount="9" FillMode="Backward">
151151
...
152152
</Animation>
153153
```

0 commit comments

Comments
 (0)