Class: MoveTo

lime.animation.MoveTo

new lime.animation.MoveTo(position, opt_y)

Move element to specific position Also accepts two numbers (x and y)
Parameters:
Name Type Argument Description
position goog.math.Coordinate | number New position value.
opt_y number <optional>
Optionaly use x,y
Source:

Extends

Members

scope

Source:

Methods

<private> calcDurationFromSpeed_()

Calculate animations duration based on its speed.
Source:

clearTransition(target)

Clear transistion when animation is stoped.
Parameters:
Name Type Description
target lime.Node The target to clear transistion for.
Source:
See:
  • lime.animation.Animation#clearTransition

makeTargetProp()

Source:
See:

setSpeed(speed) → {lime.animation.MoveTo}

Helper function that sets tha animation duration based on the size of the delta. 1 unit means 100px/sec. Calculation is based on first target node.
Parameters:
Name Type Description
speed number Speed value.
Source:
Returns:
Object itself.
Type
lime.animation.MoveTo

update()

Source:
See: