title: Add class to element when an element is scrolled over
body: <p>I'm having a container containing a top menu. But when this container is scrolled by width 60 px I need a class to be added to the top menu, but it doesn't do it now.</p>
  
  <p>I have this Jquery:</p>
  
  <pre><code>$( window ).scroll(function() {
      if ($('#case-container').scrollTop()&gt;60) {
           $('.case-header').addClass('sticky')
      } else if ($('#case-container').scrollTop()&lt;60) {
           $('.case-header').removeClass('sticky')
      }
  });
  </code></pre>
  
  <p>How can I fix this to make it work?</p>