Skip to content

Instantly share code, notes, and snippets.

@tdreyno
Created March 14, 2012 20:43
Show Gist options
  • Save tdreyno/2039368 to your computer and use it in GitHub Desktop.
Save tdreyno/2039368 to your computer and use it in GitHub Desktop.
var animationOne = $("one").animate({ style: value })
var animationTwo = animationOne.pipe(function() { return $("two").animate({ style: value }) });
var animationThree = animationTwo.pipe(function() { return $("three").animate({ style: value }) });
var ajaxCall = animationThree.pipe(function() { return $.ajax(); });
ajaxCall.done(function() {
alert("all done");
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment