Event on scroll to the specific element
$(document).ready(function(){
var specificElement = $('.products').offset().top;
$(window).scroll(function() {
if($(window).scrollTop() > specificElement) {
$('header').addClass('nav-up');
}
else{
$('header').removeClass('nav-up');
}
});
});