Skip to content

Instantly share code, notes, and snippets.

@jshaw
Created July 24, 2012 16:12
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save jshaw/3170941 to your computer and use it in GitHub Desktop.
Animation Bounce an Percent Complete Marker
// Requires jQuery & jQuery UI
$('<ELEMENT>').animate({
bottom: <VAR CalculatedPercentage>+'%',
duration: <VAR duration>
},function(){
$(this).effect("bounce", { direction:'down', times:4 }, 600);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment