Properties
duration
duration: number = 1000
easing
easing: "linear" | EasingFunction | "easeInSine" | "easeOutSine" | "easeInOutSine" | "easeInQuad" | "easeOutQuad" | "easeInOutQuad" | "easeInCubic" | "easeOutCubic" | "easeInOutCubic" | "easeInQuart" | "easeOutQuart" | "easeInOutQuart" | "easeInQuint" | "easeOutQuint" | "easeInOutQuint" | "easeInExpo" | "easeOutExpo" | "easeInOutExpo" | "easeInCirc" | "easeOutCirc" | "easeInOutCirc" | "easeInBack" | "easeOutBack" | "easeInOutBack" | "easeInElastic" | "easeOutElastic" | "easeInOutElastic" | "easeOutBounce" | "easeInBounce" | "easeInOutBounce" = "linear" interpolate
interpolate: ((from,
to,
easeProgress) => Value) Type declaration
- (from, to, easeProgress): Value
Optional
onSetup
onSetup?: (() => unknown)
Type declaration
- (): unknown
Returns unknown
Optional
onTeardown
onTeardown?: (() => unknown)
Type declaration
- (): unknown
Returns unknown
Optional
onUpdate
onUpdate?: ((value) => unknown)
Type declaration
- (value): unknown
Returns unknown
Tween takes the following options:
Obj
Obj
is set
From
To
Duration
Easing
Interpolate