Skip to content

Instantly share code, notes, and snippets.

@hvgotcodes
Created May 8, 2012 20:59
Show Gist options
  • Save hvgotcodes/2639238 to your computer and use it in GitHub Desktop.
Save hvgotcodes/2639238 to your computer and use it in GitHub Desktop.
this.selection.addEventListener('click', function() {
Ti.API.info('tee type clicked');
if (_this.state === 'closed') {
Ti.API.info('open');
_this.state = 'opened';
return _this.container.animate({
width: 212,
duration: 3000,
curve: Titanium.UI.iOS.ANIMATION_CURVE_EASE_IN_OUT
});
} else {
Ti.API.info('close');
_this.state = 'closed';
return _this.container.animate({
width: 0,
duration: 3000,
curve: Titanium.UI.iOS.ANIMATION_CURVE_EASE_IN_OUT
});
}
});
@mfferreira
Copy link

this.selection.addEventListener('click', function() {
_this.container.animate({
width: 212,
duration: 3000,
curve: Titanium.UI.iOS.ANIMATION_CURVE_EASE_IN_OUT
});
});

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment