Function getEasingFunc
- getEasingFunc(
easingRef: EasingReference,
options?: { default?: false | EasingFunctionName },
): EasingFunction Parameters
- easingRef: EasingReference
The name of a standard Svelte easing function or a supplied easing function.
Optional
options: { default?: false | EasingFunctionName }Optional parameters.
Optional
default?: false | EasingFunctionNameA default easing function by name to return. When specified as
false
no default fallback easing function is selected. The default value islinear
.
Returns EasingFunction
The requested easing function.
- easingRef: EasingReference
Performs a lookup for standard Svelte easing functions by name. For convenience if passing in a function it is returned verbatim.