new AnimatedFlowSource(duration [, easingFunction])
Creates an AnimatedFlowSource based on the provided easing function.
Parameters:
| Name | Type | Argument | Default | Description |
|---|---|---|---|---|
duration |
olympe.df.PONumber | number | The duration in milliseconds. |
||
easingFunction |
olympe.df.ONumber.EASING |
<optional> |
olympe.df.ONumber.EASING.LinearTween | The optional easing function. |
Extends
Methods
-
getFlow()
-
-
onDone(callback)
-
Sets the callback to be triggered each time the transition to the new value is complete.
Parameters:
Name Type Description callbackolympe.df.ONumber.AnimateCallback The callback to trigger.
Returns:
This
AnimatedFlowSource. -
setEasing(animationFunction)
-
Sets the easing function for that
AnimatedFlowSource.Parameters:
Name Type Description animationFunctionolympe.df.ONumber.EASING Returns:
This
AnimatedFlowSource.
Olympe SDK