I am facing an issue with my vertical slick slider:
$('.slider').slick({
slidesToShow: 3,
slidesToScroll: 1,
arrows: false,
dots: false,
infinite: false,
centerMode: true,
vertical: true,
focusOnSelect: true
});
.slider {
background: #eee;
margin: 1rem;
}
.slick-vertical .slick-slide {
cursor: pointer;
padding: 1rem;
}
.slick-vertical .slick-slide:hover {
background: #ddd;
}
.slick-vertical .slick-slide img {
display: none;
margin: 0 auto;
}
.slick-slide {
border: 1px solid #ccc;
text-align: center;
}
.slick-vertical .slick-slide.slick-current img {
display: block;
}
<script src="https://code.jquery.com/jquery-2.1.4.js"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/slick-carousel/1.6.0/slick.min.css" />
<script src="https://cdnjs.cloudflare.com/ajax/libs/slick-carousel/1.6.0/slick.min.js"></script>
<div class="slider">
<div>
<p>
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Voluptatum, alias.
</p>
<img src="https://dummyimage.com/300x150/ccc/fff&text=img-1" alt="">
</div>
<div>
<p>
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Voluptatum, alias.
</p>
<img src="https://dummyimage.com/300x150/ccc/fff&text=img-1" alt="">
</div>
<div>
<p>
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Voluptatum, alias.
</p>
<img src="https://dummyimage.com/300x150/ccc/fff&text=img-1" alt="">
</div>
<div>
<p>
Lorem ipsum dolor sit amet , consectetur adipisicing elit. Voluptatum, alias.
</p>
<img src="https://dummyimage.com/300x150/ccc/fff&text=img-1" alt="">
</div>
<div>
<p>
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Voluptatum, alias.
</p>
<img src="https://dummyimage.com/300x150/ccc/fff&text=img-1" alt="">
</div>
</div>
The problem I'm encountering is that the selected images are not appearing as expected when a cell is clicked on. The current functionality of the slider is not working properly.
If you have any suggestions or solutions on how to troubleshoot and fix this slider issue, please let me know.