Skip to content

Commit 1a29826

Browse files
authored
Merge pull request javascript-tutorial#154 from Annis-Monadjem/master
replace "progress" with "timeFraction" for clarity
2 parents b72a1aa + 13414b8 commit 1a29826

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

3-animation/3-js-animation/article.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -219,8 +219,8 @@ If we want to speed up the animation, we can use `progress` in the power `n`.
219219
For instance, a parabolic curve:
220220

221221
```js
222-
function quad(progress) {
223-
return Math.pow(progress, 2)
222+
function quad(timeFraction) {
223+
return Math.pow(timeFraction, 2)
224224
}
225225
```
226226

0 commit comments

Comments
 (0)