Function getGsapEasingFunc
- getGsapEasingFunc(
easingRef: GsapEasingReference,
options?: { default?: false | GsapEasingFunctionName },
): EasingFunction Parameters
- easingRef: GsapEasingReference
The name of a standard GSAP easing function or an existing supplied easing function.
Optional
options: { default?: false | GsapEasingFunctionName }Optional parameters.
Optional
default?: false | GsapEasingFunctionNameThe default easing function name to apply. When specified as
false
no default fallback easing function is selected.
Returns EasingFunction
The requested easing function.
- easingRef: GsapEasingReference
Performs a lookup for standard Gsap easing functions by name. All Svelte easing functions are also available by prepending
svelte-<EASE_NAME>
. For convenience if passing in a function it is returned verbatim.