new Slide( [direction] [, duration] [, amplitude] [, easing])
Creates a Slide animation.
Parameters:
| Name | Type | Argument | Default | Description |
|---|---|---|---|---|
direction |
olympe.df.Proxy.<olympe.ui.std.animations.Slide.DIRECTION> | olympe.ui.std.animations.Slide.DIRECTION |
<optional> |
left | Direction in which to run the slide animation. |
duration |
olympe.df.PONumber | number |
<optional> |
300 | Animation duration in milliseconds. |
amplitude |
olympe.df.PONumber | number |
<optional> |
Amplitude of the slide, default is screen width/height, depending on orientation. |
|
easing |
olympe.df.ONumber.EASING |
<optional> |
Type of easing for animation. |
- Implements:
Members
-
<static> DIRECTION :string
-
Slide directions
Type:
- string
Properties:
Name Type Default Description LEFTstring left RIGHTstring right BOTTOMstring bottom TOPstring top
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])
-
Element slide to its position with given direction.
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])
-
Elements slide from its position in given direction.
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