Skip to content

Commit 999ab9d

Browse files
authored
Update task.md
1 parent 5f35c46 commit 999ab9d

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

  • 7-animation/2-css-animations/4-animate-circle-callback
Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11

2-
# Animated circle with callback
2+
# Коло анимоване за допомогою функції.
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)`, яка буде викликатися після завершення анімації. Вона має отримувати коло `<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+
Демо:
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)