I am working on one project, have an issue with jquery/js
logic of adding/removing class for sticky menu,
Sample Page: https://anish.kickpages.com/stickymenu/
Try to scroll very slowing and you will notice flickering.
Code:
$(window).load(function() {
var jsHeight = $('#section_o7kn8h_1531206224').parent().height();
$('#section_o7kn8h_1531206224').parent().css('height', jsHeight);
$('#section_o7kn8h_1531206224').parent().addClass('remove-jump');
$(window).scroll(function(){
if ($(window).scrollTop() >= 100) {
$('#section_o7kn8h_1531206224').parent().css('height', 0);
$('#section_o7kn8h_1531206224').addClass('fixed-header-top');
$('#section_o7kn8h_1531206224').css('background', '');
}
else {
$('#section_o7kn8h_1531206224').parent().css('height', jsHeight);
$('#section_o7kn8h_1531206224').removeClass('fixed-header-top');
$('#section_o7kn8h_1531206224').css('background', '');
}
});
});