how to display animation within a container using java library w/touchkit

Hello,

I am working to create a web application using Vaadin which will be accessible through Web as well as iphone/android.

What I want to do is create a simple animation of a spinning image using Trident (or other) java animation library.

How do I ensure that the size of the animation is within the screen size of iphone/ipad/android device? This is very important to me…

Regards,
Arvind.