| Platform | Since |
|---|---|
| Android | 0.9 |
| iPhone | 0.9 |
| iPad | 0.9 |
| Mobile Web | 1.8 |
Animates this view.
Note that if you use animate to move a view, the view's actual position
is changed, but its layout properties, such as top, left, center and
so on are not changed--these reflect the original values set by the user, not
the actual position of the view.
In this release, the view's actual position is not available to the application. This feature will be added to a future release.
If you need one or more of the layout properties to be updated after animation, you can update them in the callback after animation is complete. For example:
var newTop = view1.top - 100; view1.animate({ top: newTop, duration: 500 }, function () { view.top = newTop; });
| Name | Type | Summary |
|---|---|---|
| obj | Titanium.UI.Animation or Dictionary<Titanium.UI.Animation> |
Either a dictionary of animation properties or an Animation object. |
| callback | Callback<Object> |
Function to be invoked upon completion of the animation. |