SustainModel
A sustain model is much like a TransitionModel but is responsible for sustaining some animation or state. Useful to represent the sustained state of an animation or something.
Functions
SetPromiseSustain
SustainModel:
SetPromiseSustain
(
sustainCallback:
function?
--
Callback which should return a promise
) →
(
)
Sets the callback which will handle sustaining the animation.
SetIsSustained
SustainModel:
SetIsSustained
(
isSustained:
boolean
,
doNotAnimate:
boolean?
--
True if animation should be skipped
) →
(
)
Sets whether we should be sustaining or not
Sustain
SustainModel:
Sustain
(
doNotAnimate:
boolean?
--
True if animation should be skipped
) →
(
)
Starts sustaining
Stop
SustainModel:
Stop
(
doNotAnimate:
boolean?
--
True if animation should be skipped
) →
(
)
Stops sustaining
PromiseSustain
SustainModel:
PromiseSustain
(
doNotAnimate:
boolean?
--
True if animation should be skipped
) →
Promise
Starts sustaining. The promise will resolve when sustaining is done. If sustaining is already happening, it will not start, but will continue to sustain until the promise is done.