Skip to content

Commit 66086ae

Browse files
committed
fixes typos
1 parent daa1900 commit 66086ae

File tree

2 files changed

+7
-12
lines changed

2 files changed

+7
-12
lines changed

7-animation/3-js-animation/2-animate-ball-hops/solution.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ A coordenada horizontal é modificada por outra regra: ela não "quica", mas gra
44

55
Podemos escrever mais um `animate` para isso.
66

7-
Como função the temo podemos usar `liner`, mas algo como `makeEaseOut(quad)` parece bem melhor.
7+
Como função de tempo podemos usar `liner`, mas algo como `makeEaseOut(quad)` parece bem melhor.
88

99
O código:
1010

7-animation/3-js-animation/text.view/index.html

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
<!DOCTYPE html>
1+
<!DOCTYPE HTML>
22
<html>
33

44
<head>
5-
<meta charset="utf-8" />
6-
<link rel="stylesheet" href="style.css" />
5+
<meta charset="utf-8">
6+
<link rel="stylesheet" href="style.css">
77
<script src="https://js.cx/libs/animate.js"></script>
88
</head>
99

@@ -15,15 +15,13 @@
1515
E ficou um pouco em pensamento.
1616
</textarea>
1717

18-
<button onclick="animateText(textExample)">
19-
Execute a animação escrita!
20-
</button>
18+
<button onclick="animateText(textExample)">Execute a animação em texto!</button>
2119

2220
<script>
2321
function animateText(textArea) {
2422
let text = textArea.value
2523
let to = text.length,
26-
from = 0
24+
from = 0;
2725

2826
animate({
2927
duration: 5000,
@@ -38,10 +36,7 @@
3836
function bounce(timeFraction) {
3937
for (let a = 0, b = 1, result; 1; a += b, b /= 2) {
4038
if (timeFraction >= (7 - 4 * a) / 11) {
41-
return (
42-
-Math.pow((11 - 6 * a - 11 * timeFraction) / 4, 2) +
43-
Math.pow(b, 2)
44-
)
39+
return (-Math.pow((11 - 6 * a - 11 * timeFraction) / 4, 2) + Math.pow(b, 2))
4540
}
4641
}
4742
}

0 commit comments

Comments
 (0)