Although altering elements in our application's pages is relatively easy, we can further enhance the user's experience by adding some animation to these elements as we change them.
We will use the
tween() method within the XUI library to alter a property of an image and tween the element to its new position on the screen:
tweensby running this line:
phonegap create tweens com.myapp.tweens tweens
cordova platform add ios cordova platform add android