Skip to content

Instantly share code, notes, and snippets.

@joshualambert
Last active December 14, 2015 12:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joshualambert/5085078 to your computer and use it in GitHub Desktop.
Save joshualambert/5085078 to your computer and use it in GitHub Desktop.
var mainWindow = Ti.UI.createWindow();
var myView = Ti.UI.createView({
width:500,
height:500,
left:-500,
backgroundColor:blue
});
mainWindow.add(myView);
mainWindow.open();
mainWindow.addEventListener('click', function(e) {
myView.animate({
left:500,
duration:1000
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment