Skip to content

Instantly share code, notes, and snippets.

@texel
Created January 6, 2011 04:44
Show Gist options
  • Select an option

  • Save texel/767508 to your computer and use it in GitHub Desktop.

Select an option

Save texel/767508 to your computer and use it in GitHub Desktop.
I want div to slide down *and* fade in, AT THE SAME TIME (ZOMG)
$(div).fadeIn().show('slide', {direction: 'up'}); // BZZZT... they both get queued
// BZZZZT... they both get added to the object's fx queue... same deal!
$(div).fadeIn();
$(div).show('slide', {direction: 'up'});
$(div).fadeIn().show('slide', {direction: 'up'}).dequeue(); // DINGDINGDING! This works but is incredibly stupid!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment