Class: Transition

lime.transitions.Transition

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:

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:

getDuration() → {number}

Returns the animation duration in seconds.
Source:
Returns:
duration.
Type
number

setDuration(value) → {lime.transitions.Transition}

Set the duration of the transition.
Parameters:
Name Type Description
value number New duration.
Source:
Returns:
object itself.
Type
lime.transitions.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.
Parameters:
Name Type Description
value function Callback.
Deprecated:
  • Yes
Source:
Returns:
object itself.
Type
lime.transitions.Transition

start()

Start the transition animation.
Source: