Class lime.animation.MoveTo
Extends
lime.animation.Animation.
Defined in: moveto.js.
| Constructor Attributes | Constructor Name and Description |
|---|---|
|
lime.animation.MoveTo(position, opt_y)
Move element to specific position
Also accepts two numbers (x and y)
|
| Field Attributes | Field Name and Description |
|---|---|
- Fields borrowed from class lime.animation.Animation:
- isPlaying_, targets
| Method Attributes | Method Name and Description |
|---|---|
| <private> |
Calculate animations duration based on its speed.
|
|
clearTransition(target)
|
|
|
makeTargetProp(target)
|
|
|
setSpeed(speed)
Helper function that sets tha animation duration
based on the size of the delta.
|
|
|
update(t, target)
|
- Methods borrowed from class lime.animation.Animation:
- addTarget, cloneParam, enableOptimizations, getDirector, getDuration, getEasing, getTargetProp, initTarget, play, removeTarget, reverse, setDuration, setEasing, step_, stop, updateAll, useTransitions
Class Detail
lime.animation.MoveTo(position, opt_y)
Move element to specific position
Also accepts two numbers (x and y)
- Parameters:
- {(goog.math.Coordinate|number)} position
- New position value.
- {number=} opt_y
- Optionaly use x,y
Field Detail
scope
Method Detail
<private>
calcDurationFromSpeed_()
Calculate animations duration based on its speed.
clearTransition(target)
- Parameters:
- target
- See:
- lime.animation.Animation#clearTransition
makeTargetProp(target)
- Parameters:
- target
{lime.animation.MoveTo}
setSpeed(speed)
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:
- {number} speed
- Speed value.
- Returns:
- {lime.animation.MoveTo} Object itself.
update(t, target)
- Parameters:
- t
- target