Skip to content

Instantly share code, notes, and snippets.

@hvgotcodes
Created March 10, 2012 20:59
Show Gist options
  • Save hvgotcodes/2013188 to your computer and use it in GitHub Desktop.
Save hvgotcodes/2013188 to your computer and use it in GitHub Desktop.
rotate: function() {
var transform = this.get('transform'),
that = this;
transform = SC.Transform3DRotateY(transform, Math.PI);
this.set('transform', transform);
this.set('focus', true);
setTimeout(function() {
SC.RunLoop.begin();
var xform = that.get('transform');
xform = SC.Transform3DRotateY(xform, Math.PI);
that.set('transform', xform);
SC.RunLoop.end();
}, 250)
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment