Answer the question
In order to leave comments, you need to log in
Slick slider and fancy box. How to make it work together?
When opening a fancybox window, the slider is not rendered. Tried these options:
$('#fancybox').fancybox({
autoSize: true,
afterShow: function() {
var main = '#slick';
var support = '#slick2';
$('.popup_slider,.gallery_slider').slick({
infinite: true,
dots: false,
arrows: true
});
}
});
$('[data-fancybox]').fancybox({
autoFocus : false,
afterLoad: function(){
$('.popup_slider,.gallery_slider').slick({
infinite: true,
dots: false,
arrows: true
});
},
afterClose: function(){
$('.popup_slider').slick('unslick');
}
});
Answer the question
In order to leave comments, you need to log in
Here is the solution - lantana-studio.ru/blog/slajder-dlya-kartochki-tovara
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question