title: How to animate a page on unload, after new page has preloaded (jQuery)
body: <p>I am trying to animate a page out while a new page is loading in. The effect I am going for is similar to the process used on this site <a href="http://www.whitefrontier.ch/">http://www.whitefrontier.ch/</a>. I am more of a designer than a developer so I have had no luck with this. Below are the two solutions that I have tried that I think are closest to correct. I realize on that site, they are using fancybox as a preloader. Do i need fancybox to get the desired result?</p>
  
  <pre><code>  $(window).load(function() {
      $('a').animate({right: '250px'},"slow");
    });
  
  $(window).on('beforeunload', function(){
    $('a').animate({right: '250px'},"slow");
  });
  </code></pre>