Skip to content

Commit c02b74d

Browse files
authored
Merge pull request #223 from yoga1234/master
Translating
2 parents 7a3cdbd + 82472d9 commit c02b74d

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

7-animation/3-js-animation/1-animate-ball/solution.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
To bounce we can use CSS property `top` and `position:absolute` for the ball inside the field with `position:relative`.
1+
Untuk membuatnya memantul kita bisa menggunakan properti CSS `top` dan `position:absolute` untuk bola yang berada didalam bidang dengan `position:relative`.
22

3-
The bottom coordinate of the field is `field.clientHeight`. The CSS `top` property refers to the upper edge of the ball. So it should go from `0` till `field.clientHeight - ball.clientHeight`, that's the final lowest position of the upper edge of the ball.
3+
Koordinat bawah dari bidangnya adalah `field.clientHeight`. Properti CSS `top` mengacu pada bagian atas dari bolanya. Jadi itu haruslah berasal dari `0` sampai `field.clientHeight - ball. clientHeight`, itulah yang menjadi posisi terbawah dari bagian atas bolanya.
44

5-
To get the "bouncing" effect we can use the timing function `bounce` in `easeOut` mode.
5+
Untuk mendapatkan efek "memantul" kita bisa menggunakan fungsi waktu `bounce` di mode `easeOut`.
66

7-
Here's the final code for the animation:
7+
Ini adalah kode akhir dari animasinya:
88

99
```js
1010
let to = field.clientHeight - ball.clientHeight;
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
importance: 5
1+
Nilai: 5
22

33
---
44

5-
# Animate the bouncing ball
5+
# Animasikan bola yang memantul
66

7-
Make a bouncing ball. Click to see how it should look:
7+
Buatlah bola yang memantul. Klik untuk melihat contohnya:
88

99
[iframe height=250 src="solution"]

0 commit comments

Comments
 (0)