Skip to content

Instantly share code, notes, and snippets.

@doublerebel
Created November 21, 2012 19:51
Show Gist options
  • Save doublerebel/4127232 to your computer and use it in GitHub Desktop.
Save doublerebel/4127232 to your computer and use it in GitHub Desktop.
Rotation animation of element in Titanium Mobile on Android
rotation = Ti.UI.create2DMatrix().rotate(0, 360);
animation = Ti.UI.createAnimation({duration: 500, repeat: 100, transform: rotation});
element.animate(animation);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment