Siema mam problem ze zrobieniem tej opcji: Dolne zdjecia mam ale nie potrafie zrobic zeby górne zdjecie działało (te duze glowne)
Ze strony http://kenwheeler.github.io/slick/
Powei mi ktos co zle zrobilem??
kod:
<!DOCTYPE html>
<html>
<head>
<title>Slick Playground</title>
<meta charset="UTF-8">
<link rel="stylesheet" type="text/css" href="./slick/slick.css">
<link rel="stylesheet" type="text/css" href="./slick/slick-theme.css">
<style type="text/css">
html, body {
margin: 0;
padding: 0;
}
* {
box-sizing: border-box;
}
.slider {
width: 50%;
margin: 100px auto;
}
.slick-slide {
margin: 0px 20px;
}
.slick-slide img {
width: 100%;
}
.slick-prev:before,
.slick-next:before {
color: black;
}
</style>
</head>
<body>
<section >
<div>
<img class="slider-for" src="1.jpg" style="height: 174px; width: 204px;">
</div>
</section>
<section class="slider-nav">
<div>
<img src="1.jpg" style="height: 174px; width: 204px;">
</div>
<div>
<img src="2.jpg" style="height: 174px; width: 204px;">
</div>
<div>
<img src="3.jpg" style="height: 174px; width: 204px;">
</div>
<div>
<img src="2.jpg" style="height: 174px; width: 204px;">
</div>
<div>
<img src="2.jpg" style="height: 174px; width: 204px;">
</div>
<div>
<img src="1.jpg" style="height: 174px; width: 204px;">
</div>
<div>
<img src="3.jpg" style="height: 174px; width: 204px;">
</div>
<div>
<img src="3.jpg" style="height: 174px; width: 204px;">
</div>
<div>
<img src="1.jpg" style="height: 174px; width: 204px;">
</div>
</section>
<script src="https://code.jquery.com/jquery-2.2.0.min.js" type="text/javascript"></script>
<script src="./slick/slick.js" type="text/javascript" charset="utf-8"></script>
<script type="text/javascript">
$(document).on('ready', function() {
$('.slider-for').slick({
slidesToShow: 1,
slidesToScroll: 1,
arrows: false,
fade: true,
asNavFor: '.slider-nav'
});
$('.slider-nav').slick({
slidesToShow: 6,
slidesToScroll: 3,
asNavFor: '.slider-for',
dots: true,
centerMode: true,
focusOnSelect: true
});
});
</script>
</body>
</html>