title: Is there a way to add a smooth/ease transition effect to jQuery?
body: <p>I have this code to modify the position of an element on my page when user scrolls page a certain position of the page:</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
  jQuery(window).scroll(function() {
    if(jQuery(window).scrollTop() &gt; 150) {
      jQuery("#tab_toggle #tab_toggle_bg").attr("style","top: 45% !important"); 
    } else {
      jQuery("#tab_toggle #tab_toggle_bg").removeAttr("style"); 
    }
  });
  &lt;/script&gt;
  </code></pre>
  
  <p>Is there a way to add an effect similar to the CSS <code>transition: all 0.5s ease</code> to this when the scrollTop effect triggers?</p>