Skip to content

Instantly share code, notes, and snippets.

@pegli
Created April 22, 2013 16:51
Show Gist options
  • Save pegli/5436666 to your computer and use it in GitHub Desktop.
Save pegli/5436666 to your computer and use it in GitHub Desktop.
Alloy page curl animation example
function curlDown(e) {
$.back.close({ transition: Ti.UI.iPhone.AnimationStyle.CURL_DOWN });
}
<Alloy>
<Window onClick="curlDown" backgroundColor="blue">
<Label>Click anywhere to curl down</Label>
</Window>
</Alloy>
var backController = Alloy.createController('back');
function curlUp(e) {
backController.getView().open({ transition: Ti.UI.iPhone.AnimationStyle.CURL_UP });
}
$.index.open();
<Alloy>
<Window class="container">
<Button onClick="curlUp">Curl Up</Button>
</Window>
</Alloy>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment