<script type="text/javascript" src="//code.jquery.com/jquery-1.11.0.min.js"></script>
<link rel="stylesheet" type="text/css" href="slick/slick.css"/>
<link rel="stylesheet" type="text/css" href="slick/slick-theme.css"/>
<link rel="stylesheet" type="text/css" href="slick/slick-theme.css"/>
<link rel="stylesheet" href="/fancybox/jquery.fancybox-1.3.4.css" type="text/css" media="screen" />
<script type="text/javascript" src="/fancybox/jquery.easing-1.4.pack.js"></script>
<div class="main-slider">
<div>Контент слайда 1 </div>
<div>Контент слайда 2 </div>
...
<div>Контент слайда 3 </div>
</div>
<div class="thumb-slider">
<div>Контент слайда 1 </div>
<div>Контент слайда 2 </div>
...
<div>Контент слайда 3 </div>
</div>
$(’.main-slider’).slick({
infinite: true,
slidesToShow: 1,
slidesToScroll: 1,
initialSlide: 1,
arrows: true,
nextArrow: ’<span class="arrow-next"></span>’,
prevArrow: ’<span class="arrow-prev"></span>’,
asNavFor: ’.thumb-slider’
});
$(’.thumb-slider’).slick({
infinite: true,
slidesToShow: 3,
slidesToScroll: 1,
arrows: false,
focusOnSelect: false,
asNavFor: ’.main-slider’,
responsive: [
{
breakpoint: 768,
settings: {
swipe: true
}
}
]
});