P
P
paramin2020-06-15 13:52:00
Owl Carousel
paramin, 2020-06-15 13:52:00

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();
    });


Thanks for the help. OwlCarousel version v1.3.3

Answer the question

In order to leave comments, you need to log in

1 answer(s)
0
0xD34F, 2020-06-15
@paramin

And what, to remove the excess before the initialization of owl - no, no way? And even better - fix the backend so as not to get too much.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question