M
M
Martyer2016-03-10 08:08:07
css
Martyer, 2016-03-10 08:08:07

Why doesn't slick slider work?

I connected it as in the instructions, there are no errors in the console, but the slider does not work. Please tell me what is the problem?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
N
nikfakel, 2016-03-10
@Martyer

$('.single-item').slick();  - у вас

$('.single-item').slick({}); - как надо

A
Arthur, 2016-03-10
@astralo

Most likely the problem is that not everything has loaded on the page yet.
And not at all in the absence of an empty object in the parameters or setting the code at the end)))

<script src="path/to/slick.slider.js"></script>
<script>
$(function(){
  $('.single-item').slick();
});
</script>

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question