Skip to content

Instantly share code, notes, and snippets.

@methodofaction
Created May 20, 2013 10:41
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 methodofaction/5611557 to your computer and use it in GitHub Desktop.
Save methodofaction/5611557 to your computer and use it in GitHub Desktop.
Primitive shake
$("#getpermalink").animate({
left: -5
}, 50, function() {
$("#getpermalink").animate({
left: 5
}, 50, function() {
$("#getpermalink").animate({
left: -5
}, 50, function() {
$("#getpermalink").animate({
left: 5
}, 50, function() {
$("#getpermalink").animate({
left: 5
}, 50, function() {
$("#yourname").focus();
});
});
});
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment