Answer the question
In order to leave comments, you need to log in
How to solve conflict between Slick slider and burger menu script?
I put a slider on the page Slick
slider works but the adaptive menu script stops working slider
code
$('.one-time').slick({
dots: true,
infinite: true,
speed: 300,
slidesToShow: 1,
adaptiveHeight: true,
prevArrow: '',
nextArrow: '',
dotsClass: 'slider_visible'
});
$("a").click(function () {
var elementClick = $(this).attr("href");
var destination = $(elementClick).offset().top;
$('html, body') .animate({ scrollTop: destination }, 1000);
return false;
});
menu code
//menu
$(document).
var link = $('.menu-btn');
var link_active = $('.menu-btn_active');
var menu = $('.menu')
link.click(function(){
link.toggleClass('menu-btn_active');
menu.toggleClass('menu_active');
});
link_active.click(function(){
link.removeClass('menu-btn_active');
});
});
//menu end
what can be done?
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