Skip to content

Instantly share code, notes, and snippets.

@fitzgeraldsteele
Created October 21, 2010 04:06
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 fitzgeraldsteele/637921 to your computer and use it in GitHub Desktop.
Save fitzgeraldsteele/637921 to your computer and use it in GitHub Desktop.
A simple jQuery animation snippet that fades an element, does some work on it, and then fades in
$('#link').click(function(
$('#content_container').fadeOut("fast",function() {
updatePage();
//other code here
}).fadeIn();
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment