title: get current top left bottom and right position of a screen
body: <p>I need to get the current left, top, bottom and right position of a screen, so i can animate my object perfectly. Is there anything to get current location? Any help would be nice.</p>
  
  <p><strong>object position set:</strong></p>
  
  <pre><code> $(this).animate
   ({
       left: $(window).scrollLeft(),
       top: $(window).scrollTop(),
       width: $(window).scrollLeft() + $(window).width(),
       height:  $(window).scrollTop() + $(window).height(),
   }, 500, 
  </code></pre>
  
  <p>this issue now remain the bottom part after changing my code to @chad.</p>
  
  <p><img src="https://i.stack.imgur.com/CTR1Q.png" alt="&lt;code&gt;sample&lt;/code&gt;"></p>