Answer the question
In order to leave comments, you need to log in
Setting up your own carousel OwlCarousel v1.3.3?
Hello.
I get the contents of the carousel, with 1 extra block.
It turns out that you need to delete the last block and restart the carousel.
The block itself was deleted, but with a reboot something does not work out.
$(".gcarousel .goods-list").each(function() {
var carousel = $(this),
prev = $(this).parent().parent().find('.title1 .fa-angle-left'),
next = $(this).parent().parent().find('.title1 .fa-angle-right');
$(this).owlCarousel({
items: 4,
itemsDesktop: [1199, 4],
itemsDesktopSmall: [1024, 4],
itemsTablet: [750, 2],
itemsTabletSmall: false,
itemsMobile: [490, 1]
});
prev.click(function() {
carousel.trigger('owl.prev');
});
next.click(function() {
carousel.trigger('owl.next');
});
$(".owl-item").last().remove();
});
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