Answer the question
In order to leave comments, you need to log in
Slick slider in bootstrap3 modal?
Slider doesn't work on first launch.
If you refresh the page or scroll to the next. slide is ok.
How to fix?
//goods_slider
$('#modalGoods').on('shown.bs.modal', function () {
$('.goods_slider').fadeIn(500);
$('.goods_slider').resize();
});
$('#modalGoods').on('hidde.bs.modal', function () {
$('.goods_slider').resize();
$('.goods_slider').fadeOut();
});
$('.goods_slider').slick({
slidesToShow: 3,
speed: 1000,
dots: false,
arrows: true,
responsive: [
{
breakpoint: 768,
settings: {
centerMode: false,
slidesToShow: 1,
dots: false,
arrows: true,
}
}]
});
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question