Answer the question
In order to leave comments, you need to log in
I need help, the code does not work, what should I do?
There is a code:
$(function(){
$('.header__slider').slick({
infinite: true,
fade: true,
prevArrow: '<img class="slider-arrows slider-arrows-left" src="img/arrows-left.svg" alt="">',
nextArrow: '<img class="slider-arrows slider-arrows-right" src="img/arrows-right.svg" alt="">',
asNavFor: '.slides-dots',
});
$('.slider-dots').slick({
slidesToShow: 4,
slidesToScroll: 4,
asNavFor: '.header__slider',
});
});
Answer the question
In order to leave comments, you need to log in
You have asNavFor: '.slides-dots' and the slider class is .slider-dots.
$(function(){
$('.header__slider').slick({
infinite: true,
fade: true,
prevArrow: '<img class="slider-arrows slider-arrows-left" src="img/arrows-left.svg" alt="">',
nextArrow: '<img class="slider-arrows slider-arrows-right" src="img/arrows-right.svg" alt="">',
asNavFor: '.slider-dots',
});
$('.slider-dots').slick({
slidesToShow: 4,
slidesToScroll: 4,
asNavFor: '.header__slider',
});
});
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question