Skip to content

Instantly share code, notes, and snippets.

@mikedugan
Created November 8, 2013 17:55
Show Gist options
  • Save mikedugan/7374942 to your computer and use it in GitHub Desktop.
Save mikedugan/7374942 to your computer and use it in GitHub Desktop.
jquery animate - basic usage
$('someEl').click(function() {
$(this).animate({
'font-size': '+=5',
'width': '-=50'
}, 500, 'swing', function() {
console.log("this is the callback functon");
})
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment