File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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 ` .
You can’t perform that action at this time.
0 commit comments