title: jQuery animate to top of the viewport
body: <p>I'm creating a product page for an e-commerce website which has a fixed bar at the top of the page and the basket within that. There are lots of items on the page and hence there are lots of 'Add To Basket' buttons.</p>
  
  <p>I need the Add To Basket button to fly up to the basket at the fixed bar. At the moment, I've managed to get the box to appear where I need it to appear when clicked, however there isn't any transition with the animation. I'm guessing it could be the fact that I'm turning the object into a <code>position:fixed;</code>.</p>
  
  <p>Here's a fiddle of what I've got so far.. Hope you can help!</p>
  
  <p><a href="http://jsfiddle.net/d7tHU/" rel="nofollow">http://jsfiddle.net/d7tHU/</a> </p>
  
  <pre><code>$('.addToCart').click(function(){
      $(this).css('position','fixed');
      $(this).animate({
          top: '0px',
          right:'0px'
      }, "slow");
  
  });
  </code></pre>