Skip to content

Instantly share code, notes, and snippets.

@webfella
Created August 21, 2012 12:14
Show Gist options
  • Save webfella/3414996 to your computer and use it in GitHub Desktop.
Save webfella/3414996 to your computer and use it in GitHub Desktop.
Wobble function
# small function to use with jquery to shake an element.
shakeThatBooty = (e, amount, counter) ->
speed = 50
if (counter == 0) then return
e.animate
right: amount
, speed, ->
e.animate
right: -amount
, speed, ->
shakeThatBooty e, amount, counter-1
return
return
return
shakeThatBooty $(element), 2, 5
@webfella
Copy link
Author

Hips don't lie man!

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