new Delay( [duration])
Creates an instance of Delay.
Parameters:
| Name | Type | Argument | Default | Description |
|---|---|---|---|---|
duration |
olympe.df.PONumber | number |
<optional> |
300 | Animation duration in milliseconds. |
- Implements:
Methods
-
run(oldElement, newElement, oldElementId, newElementId, container [, onAnimationEnd])
-
Function called to run the animation on two elements WARNING : onAnimationEnd must be called for compatibility
Parameters:
Name Type Argument Description oldElementolympe.ui.std.DockableElement | olympe.df.Proxy.<olympe.ui.std.DockableElement> screen to hide
newElementolympe.ui.std.DockableElement | olympe.df.Proxy.<olympe.ui.std.DockableElement> screen to display
oldElementIdstring newElementIdstring containerolympe.ui.std.DockableElement onAnimationEndfunction <optional>
- Implements:
-
runForward(element [, elementId] [, container] [, onAnimationEnd] [, synchronizedAnimatedValue])
-
Function running the animation 0->1 on a single element. WARNING : onAnimationEnd must be called for compatibility
Parameters:
Name Type Argument Description elementolympe.ui.std.DockableElement | olympe.df.Proxy.<olympe.ui.std.DockableElement> UI element to animate
elementIdstring <optional>
containerolympe.ui.std.DockableElement <optional>
onAnimationEndfunction <optional>
synchronizedAnimatedValueolympe.df.PONumber <optional>
Use an already existing animated ONumber to synchronize animations
- Implements:
Returns:
animated ONumber
- Type
- olympe.df.PONumber
-
runReverse(element [, elementId] [, container] [, onAnimationEnd] [, synchronizedAnimatedValue])
-
Function running the animation 1->0 on a single element. WARNING : onAnimationEnd must be called for compatibility
Parameters:
Name Type Argument Description elementolympe.ui.std.DockableElement | olympe.df.Proxy.<olympe.ui.std.DockableElement> UI element to animate
elementIdstring <optional>
containerolympe.ui.std.DockableElement <optional>
onAnimationEndfunction <optional>
synchronizedAnimatedValueolympe.df.PONumber <optional>
Use an already existing animated ONumber to synchronize animations
- Implements:
Returns:
animated ONumber
- Type
- olympe.df.PONumber
Olympe SDK