title: Lateral scrolling in and scrolling out using scrolltop()
body: <p>i have an image which i want to smoothly scorllin when user scrolls down and scrolls up the image should go back to original positon.
  to do this i thought of using </p>
  
  <pre><code>$(window).scrollTop() 
  </code></pre>
  
  <p>as</p>
  
  <pre><code>$(".slogan").css('margin-left', -$(window).scrollTop());
  </code></pre>
  
  <p>but i am not able to see a difference. i tried to use stellar.js for this but dont know how to do it with stellar.</p>
  
  <p>any help will be appreciated</p>
  
  <p>thanks
  Masood Ahmed </p>