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
{{ message }}
Repository navigation
Commit 999ab9d
Browse filesBrowse the repository at this point in the historyBrowse files
In the task <info:task/animate-circle>an animated growing circle is shown.
4
+
У завданні <info:task/animate-circle>показана анімація зростання кола.
5
5
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
+
Припустимо, що нам потрібно показати повідомлення всередині нього. Повідомлення має з’явитися *після* завершення анімації (коли коло повністю виросло), інакше воно виглядатиме негарно.
7
7
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)`малює коло, але не дає можливості відстежити, коли воно готове.
9
9
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)`, яка буде викликатися після завершення анімації. Вона має отримувати коло `<div>`як аргумент.
11
11
12
-
Here's the example:
12
+
Ось приклад:
13
13
14
14
```js
15
15
showCircle(150, 150, 100, div=> {
@@ -18,8 +18,8 @@ showCircle(150, 150, 100, div => {
18
18
});
19
19
```
20
20
21
-
Demo:
21
+
Демо:
22
22
23
23
[iframe src="solution" height=260]
24
24
25
-
Take the solution of the task <info:task/animate-circle> as the base.
25
+
За основу візьмемо рішення задачі <info:task/animate-circle>
0 commit comments