title: How to make functions/method work together in jQuery
body: <p>for some reason in the following code the fadein method doesn't work while the first function works perfectly. How do I make them work together?</p>
  
  <pre><code>$(document).ready(function(){
  
      function updown() {
          $("#freccia")
              .animate( {"top": "+=20px"}, 2000, "easeInOutQuad" )
              .animate( {"top": "-=20px"}, 2000, "easeInOutQuad" );
          updown();
      }
  
      updown();
  
      $("#frontespizio")
          .hide()
          .fadeIn(2000)
          .delay(2000);
  });
  </code></pre>