- time(nameOrFunction, duration): (() => number)
Parameters
- nameOrFunction:
| "bounceOut"
| "quintIn"
| "quintOut"
| "arch"
| "smoothstep"
| "smootherstep"
| "sineIn"
| "sineOut"
| "quadIn"
| "quadOut"
| "sineInOut"
| "quadInOut"
| "cubicIn"
| "cubicOut"
| "quartIn"
| "quartOut"
| "expoIn"
| "expoOut"
| "quintInOut"
| "expoInOut"
| "circIn"
| "circOut"
| "backIn"
| "backOut"
| "circInOut"
| "backInOut"
| "elasticIn"
| "elasticOut"
| "bounceIn"
| "bell"
| "elasticInOut"
| "bounceInOut"
| ((v: number) => number) - duration: Interval
Returns (() => number)
Produce easing values over time. When the easing is complete, the final value continues to return. Timer starts when return function is first invoked.
If you need to check if an easing is done or reset it, consider timeEasing.
This function is just a wrapper around Modulate.time