title: Page FadeIn and FadeOut Transition
body: <p>I am currently trying to create a script that makes fading transition from page to page when clicking a anchorlink. I have already made the script, but it does not seem to work.</p>
  
  <p>My code look like this:</p>
  
  <pre><code>$("body").load(function() {
      $(this).fadeIn(200);
  });
  
  $("a").click(function() {
      $link = $(this).attr("href");
      $("body").fadeOut(200);
      window.location.replace($link);
  });
  </code></pre>
  
  <p>It does not seem to make the fadeIn and fadeOut transitions. It is still the normal pageload.</p>