Answer the question
In order to leave comments, you need to log in
After adding the script, some other scripts do not work?
After adding this:
var $block = $('#lk-conteyner'),
blockPos = $('#lk-conteyner').offset().top;
$(window).scroll(function(){
var currentScroll = $(this).scrollTop();
console.log(currentScroll);
if ( currentScroll > blockPos ) {
$block.slideUp(200);
} else {
$block.slideDown();
}
});
$(window).scroll(function(){
if ($(window).scrollTop() > 1) {
$('header').addClass('cont_header');
}
else {
$('header').removeClass('cont_header');
}
});
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