title: 2 functions same time jQuery slideUp -slideDown + resize
body: <p>What's the best solution to run those functions at the same time?</p>
  
  <p>Mainly: slideDown and fancybox.resize, as it's now run on function complete, function fancybox.resize has to be run <strong>while</strong> slidedown is running, otherwise it won't work.</p>
  
  <pre><code>function DisplayLogin() {
      jQuery("#sign-up-select").slideUp(400);
      jQuery("#login-select").slideDown(400, function(){
          jQuery.fancybox.resize()
      });
  }
  </code></pre>
  
  <p>Thanks!!
  Adam</p>
  
  <p>Thanks for help guys!!</p>
  
  <p>That's what I wanted to get - final result:</p>
  
  <pre><code>function DisplayLogin() {
      jQuery("#sign-up-select").slideUp(400);
      jQuery("#login-select").slideDown(400);
      var interval = setInterval(function(){jQuery.fancybox.resize()}, 100);  
      setTimeout(function() {
              clearInterval(interval);
          }, 400);
  }
  </code></pre>