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:
- animation/moveto.js, line 16
Extends
Summary
Members |
||
---|---|---|
scope
|
Inherited
Methods |
||
---|---|---|
<private> |
calcDurationFromSpeed_ ()
Calculate animations duration based on its speed.
|
|
clearTransition (target)
Clear transistion when animation is stoped.
|
||
makeTargetProp ()
|
||
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.
|
||
update ()
|
Inherited
lime.animation.Animation.addTarget,  lime.animation.Animation.cloneParam,  lime.animation.Animation.enableOptimizations,  lime.animation.Animation.getDirector,  lime.animation.Animation.getDuration,  lime.animation.Animation.getEasing,  lime.animation.Animation.getTargetProp,  lime.animation.Animation.initTarget,  lime.animation.Animation.play,  lime.animation.Animation.removeTarget,  lime.animation.Animation.reverse,  lime.animation.Animation.setDuration,  lime.animation.Animation.setEasing,  lime.animation.Animation.step_,  lime.animation.Animation.stop,  lime.animation.Animation.updateAll,  lime.animation.Animation.useTransitions
Members
-
scope
-
- Source:
- animation/moveto.js, line 29
Methods
-
<private> calcDurationFromSpeed_()
-
Calculate animations duration based on its speed.
- Source:
- animation/moveto.js, line 72
-
clearTransition(target)
-
Clear transistion when animation is stoped.
Parameters:
Name Type Description target
lime.Node The target to clear transistion for. - Source:
- animation/moveto.js, line 103
- See:
-
- lime.animation.Animation#clearTransition
-
makeTargetProp()
-
- Source:
- animation/moveto.js, line 48
- 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:
- animation/moveto.js, line 38
Returns:
Object itself. -
update()
-
- Source:
- animation/moveto.js, line 89
- See: