Skip to content

Instantly share code, notes, and snippets.

@stuffness
Created February 29, 2012 03:29
Show Gist options
  • Save stuffness/1937363 to your computer and use it in GitHub Desktop.
Save stuffness/1937363 to your computer and use it in GitHub Desktop.
over = {
amount: 20,
ready: true,
anim: function(dir, el) {
amount = dir * this.amount;
if (this.ready) {
this.ready = false;
el.animate({
left: '+=' + amount,
top: '+=' + amount
}, JQuery.proxy(function() {
alert(this.ready);
}, this));
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment