• In topic here i find a solution how to fix carousel width in tabs, but it works only with one tab (second). How to refresh all carousels on page?

Viewing 1 replies (of 1 total)
  • Thread Starter Alex Soundmaster

    (@alex-soundmaster)

    $(".et_pb_tabs_controls li").click(function(){
    	var w = $ ('.et_pb_all_tabs').width();
        var carousel = $('.post_carousel2 .owl-carousel').data('owlCarousel');
        carousel._width = w;
        carousel.invalidate('width');
        carousel.refresh();
    	
    	var carousel = $('.post_carousel3 .owl-carousel').data('owlCarousel');
        carousel._width = w;
        carousel.invalidate('width');
        carousel.refresh();
    	
    	var carousel = $('.post_carousel4 .owl-carousel').data('owlCarousel');
        carousel._width = w;
        carousel.invalidate('width');
        carousel.refresh();
    });

    This is my code now.
    But i dont know the count of carousels on my page for now.

Viewing 1 replies (of 1 total)
  • The topic ‘carousel in tabs’ is closed to new replies.