title: jquery waypoint sticky subnav bootstrap speed of scroll
body: <p>I am trying to adjust the speed of a page jump, here is the jQuery I have:</p>
  
  <pre><code>$(document).scroll(function(){
  var elem = $('.subnav');
  if (!elem.attr('data-top')) {
      if (elem.hasClass('navbar-fixed-top'))
          return;
       var offset = elem.offset()
      elem.attr('data-top', offset.top);
  }
  if (elem.attr('data-top') - elem.outerHeight() &lt;= $(this).scrollTop() - $(elem).outerHeight())
      elem.addClass('navbar-fixed-top');
  else
      elem.removeClass('navbar-fixed-top');
  </code></pre>
  
  <p>});</p>
  
  <p>I just cant seem to work out where to add:</p>
  
  <pre><code> 900, 'swing', function () {
          window.location.hash = target;
  </code></pre>
  
  <p>Or something simliar.</p>