Open palanganero opened 3 years ago
i finally solved it with this:
<div class="container-fluid">
<div class="row">
<div class="col-12 p-0">
<div class="contenedor slideshow">
<img data-slidertitle="imagenes/zapatos.jpg" src="imagenes/zapatos.jpg">
<img data-slidertitle="imagenes/zapatos.jpg" src="imagenes/zapatos.jpg">
<img data-slidertitle="imagenes/zapatos.jpg" src="imagenes/zapatos.jpg">
</div>
</div>
</div>
</div>
and this is the javascript:
$(".slideshow").slick({
dots:true,
arrows: true,
fade:true,
autoplay:true,
/*centerMode: true,*/ //centrar foto
slidesToShow: 1,
slidesToScroll: 1,
customPaging: function(slick,index) {
var targetImage = $(slick.$slides[index]).data('slidertitle');
return '<img src=" ' + targetImage + ' " style="max-width:80px;"/>';
}
});
I am trying to create a slick slide with thumbnails, but the thumbnails are broken: https://postimg.cc/4mnBds37. This is the html code:
and this is the javascript:
and the version of slick slider is: 1.8.1