Update article.md
This commit is contained in:
parent
c6271b5c58
commit
13414b845e
1 changed files with 2 additions and 2 deletions
|
@ -219,8 +219,8 @@ If we want to speed up the animation, we can use `progress` in the power `n`.
|
|||
For instance, a parabolic curve:
|
||||
|
||||
```js
|
||||
function quad(progress) {
|
||||
return Math.pow(progress, 2)
|
||||
function quad(timeFraction) {
|
||||
return Math.pow(timeFraction, 2)
|
||||
}
|
||||
```
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue