add animate

a demo from http://phonegap.com/