Sticky Header – jQuery

if($(window).height() > 600) { 
  $(window).scroll(function(){
    if($(document).scrollTop() > 140)
    {
      $('.header-container').addClass('fixed');
    }
    else
    {
      $('.header-container').removeClass('fixed');
    }
  });
}

Search the site

Share this page:

Newsletter

Subscribe to get regular news and updates

  • This field is for validation purposes and should be left unchanged.