Skip to content

Commit 890daf7

Browse files
authored
smth
1 parent c77c324 commit 890daf7

File tree

2 files changed

+2
-2
lines changed
  • 7-animation/3-js-animation

2 files changed

+2
-2
lines changed

7-animation/3-js-animation/1-animate-ball/solution.view/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
}
2222

2323
function bounce(timeFraction) {
24-
for (let a = 0, b = 1, result; 1; a += b, b /= 2) {
24+
for (let a = 0, b = 1; 1; a += b, b /= 2) {
2525
if (timeFraction >= (7 - 4 * a) / 11) {
2626
return -Math.pow((11 - 6 * a - 11 * timeFraction) / 4, 2) + Math.pow(b, 2)
2727
}

7-animation/3-js-animation/2-animate-ball-hops/solution.view/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
}
2222

2323
function bounce(timeFraction) {
24-
for (let a = 0, b = 1, result; 1; a += b, b /= 2) {
24+
for (let a = 0, b = 1; 1; a += b, b /= 2) {
2525
if (timeFraction >= (7 - 4 * a) / 11) {
2626
return -Math.pow((11 - 6 * a - 11 * timeFraction) / 4, 2) + Math.pow(b, 2)
2727
}

0 commit comments

Comments
 (0)