Answer the question
In order to leave comments, you need to log in
Slider initialization?
How to re-initialize slides when loading goods ajax? I did it, but when you click on the trace, reinitialization occurs, and if you click on the previous one, then the rules work
$('body').on('click','.swiper-product-mini .swiper-button-next', function(){
var swiper = new Swiper($(this).closest('.swiper-product-mini'), {
slidesPerView: 1,
slidesPerGroup: 1,
navigation: {
nextEl: '.swiper-button-next',
prevEl: '.swiper-button-prev',
}
});
swiper.update();
});
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