Skip to content

Commit 9275516

Browse files
authored
Update README.md
Changed word from easing to ease in docs
1 parent a7da5ed commit 9275516

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/tween/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ function createTween(
3939
target: Accessor<number>,
4040
options: {
4141
duration?: number = 100; // ms
42-
easing?: (t: number) => number = (t) => t;
42+
ease?: (t: number) => number = (t) => t;
4343
}
4444
): Accessor<number>;
4545
```
@@ -51,7 +51,7 @@ You can provide two options:
5151

5252
- `duration` is the number of milliseconds to perform the transition
5353
from the previous value to the next value. Defaults to 100.
54-
- `easing` is a function that maps a number between 0 and 1 to a number
54+
- `ease` is a function that maps a number between 0 and 1 to a number
5555
between 0 and 1, to speed up or slow down different parts of the transition.
5656
The default easing function `(t) => t` is linear (no easing).
5757
A common choice is `(t) => 0.5 - Math.cos(Math.PI * t) / 2`.

0 commit comments

Comments
 (0)