Skip to content

Commit 3152c5b

Browse files
okkjoosonghn233leviding
authored
feat: translate 7-animation / 2-css-animations / 4-animate-circle-callback/task.md (#1105)
* Translate * Update 7-animation/2-css-animations/4-animate-circle-callback/task.md Co-authored-by: Songhn <songhn233@gmail.com> * Update 7-animation/2-css-animations/4-animate-circle-callback/task.md Co-authored-by: Songhn <songhn233@gmail.com> * Update 7-animation/2-css-animations/4-animate-circle-callback/task.md Co-authored-by: Songhn <songhn233@gmail.com> * fix: typo Co-authored-by: Songhn <songhn233@gmail.com> Co-authored-by: LeviDing <imdingxuewen@gmail.com>
1 parent ff07edf commit 3152c5b

File tree

1 file changed

+7
-7
lines changed
  • 7-animation/2-css-animations/4-animate-circle-callback

1 file changed

+7
-7
lines changed
Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11

22
# 带回调的圆圈动画
33

4-
In the task <info:task/animate-circle> an animated growing circle is shown.
4+
在练习 <info:task/animate-circle> 中展示了一个不断变大的圆。
55

6-
Now let's say we need not just a circle, but to show a message inside it. The message should appear *after* the animation is complete (the circle is fully grown), otherwise it would look ugly.
6+
现在假设我们不止需要一个圆,还需要在其中显示一条消息。该消息应该出现在动画结束 **之后**(圆变最大时),否则看起来会很丑。
77

8-
In the solution of the task, the function `showCircle(cx, cy, radius)` draws the circle, but gives no way to track when it's ready.
8+
在该练习的解决方案中,函数 `showCircle(cx, cy, radius)` 画了一个不断变大的圆,但无法知道它何时结束。
99

10-
Add a callback argument: `showCircle(cx, cy, radius, callback)` to be called when the animation is complete. The `callback` should receive the circle `<div>` as an argument.
10+
添加一个回调函数:`showCircle(cx, cy, radius, callback)` 在动画完成时调用。`callback` 应该接收圆 `div` 作为参数。
1111

12-
Here's the example:
12+
下面是一个例子:
1313

1414
```js
1515
showCircle(150, 150, 100, div => {
@@ -18,8 +18,8 @@ showCircle(150, 150, 100, div => {
1818
});
1919
```
2020

21-
Demo:
21+
Demo
2222

2323
[iframe src="solution" height=260]
2424

25-
Take the solution of the task <info:task/animate-circle> as the base.
25+
<info:task/animate-circle> 的解决方案为基础。

0 commit comments

Comments
 (0)