Answer the question
In order to leave comments, you need to log in
How to remove the line on page reload?
Hi all!
i hide the menu using jquery
$(document).ready(function(){
// hide .navbar first
$(".myfixed").hide();
$(function () {
$(window).scroll(function () {
if ($(this).scrollTop() > 270) {
$('.myfixed').fadeIn();
} else {
$('.myfixed').fadeOut();
}
});
});
});
Answer the question
In order to leave comments, you need to log in
This is due to the fact that your script does not have time to load and hide the block. I will repeat what I said in the comment. Maybe put display:none instead of hiding it with jquery?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question