Answer the question
In order to leave comments, you need to log in
How to make fadeOut only fixed header and not static?
Here is the code
$(".navbar").removeClass("fixed");
$(window).scroll(function(){
if($(this).scrollTop() > 120){
$(".navbar").addClass("fixed").fadeIn(500);
$(".btn-header").addClass("hidden-lg hidden-md hidden-sm");
$(".nav-btn").removeClass("hidden")
}
else {
$(".navbar").removeClass("fixed").fadeOut(500);
$(".nav-btn").addClass("hidden")
}
});
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question