title: Window resize help needed. Change div position (instead of animation)
body: <p>I'm not sure what's the right solution here. I've used the search function and Google, but I still need some advice.</p>
  
  <p>I got several divs animating in, on window.load.
  For example:</p>
  
  <pre><code>var showreel = $('#plbg');              
  showreel.delay(1500).animate({
  right: $(window).width()/2 - showreel.outerWidth()/2}, 500, 'swing');
  </code></pre>
  
  <p>So this animates the div to the center of the screen.
  Now when I resize the window it doesn't center dynamically. </p>
  
  <p>I wrote another few lines, like this:</p>
  
  <pre><code>$(window).resize(function() {
  var showreel = $('#plbg');              
  showreel.delay(1500).animate({
  right: $(window).width()/2 - showreel.outerWidth()/2}, 500, 'swing');
  });
  </code></pre>
  
  <p>I got it to work with animation, but I just want to move the divs to their new location without animation. But maybe it's better to use a different solution?</p>
  
  <p>Could someone please give me some advice?</p>
  
  <p>Thank you!</p>
  
  <p>EDIT:
  Case closed i guess, thanks everyone!
  <a href="http://jsfiddle.net/jruddell/bV8qp/2/" rel="nofollow">http://jsfiddle.net/jruddell/bV8qp/2/</a></p>