new lime.transitions.Transition(outgoing, incoming)
Animation for switching active scenes
Parameters:
Name | Type | Description |
---|---|---|
outgoing |
lime.Scene | Outgoing scene. |
incoming |
lime.Scene | Incoming scene. |
- Source:
- transitions/transition.js, line 10
Extends
- goog.events.EventTarget
Summary
Methods |
||
---|---|---|
finish ()
Complete the transition animation
|
||
getDuration () → {number}
Returns the animation duration in seconds.
|
||
setDuration (value) → {lime.transitions.Transition}
Set the duration of the transition.
|
||
setFinishCallback (value) → {lime.transitions.Transition}
Set finish callback for transition. This function will be called
after the transition has finished. DEPRECATED! Use event listeners instead.
|
||
start ()
Start the transition animation.
|
Methods
-
finish()
-
Complete the transition animation
- Source:
- transitions/transition.js, line 67
-
getDuration() → {number}
-
Returns the animation duration in seconds.
- Source:
- transitions/transition.js, line 26
Returns:
duration.- Type
- number
-
setDuration(value) → {lime.transitions.Transition}
-
Set the duration of the transition.
Parameters:
Name Type Description value
number New duration. - Source:
- transitions/transition.js, line 35
Returns:
object itself. -
setFinishCallback(value) → {lime.transitions.Transition}
-
Set finish callback for transition. This function will be called after the transition has finished. DEPRECATED! Use event listeners instead.
Parameters:
Name Type Description value
function Callback. - Deprecated:
- Yes
- Source:
- transitions/transition.js, line 47
Returns:
object itself. -
start()
-
Start the transition animation.
- Source:
- transitions/transition.js, line 57