I have used owl carousel in my shopify store on mobile devices. Data Of owl Carousel is coming from my private app usin ajax request. My owl carousel is not loaded and data is listed as list on mobile and face this error:
Here Is code which i have used:-
function owl_slider(){
var owl = $('#shoppinglistDetailMobile .owl-carousel');
owl.owlCarousel({
margin: 30,
loop: true,
navigation : true,
autoplay:false,
autoplayTimeout:3000,
autoplayHoverPause:true,
responsive: {
0: {
items: 2
},
400: {
items: 2
},
600: {
items: 3
},
800: {
items: 3
},
1200: {
items: 4
},
1300: {
items: 4
},
1350: {
items: 6
},
1400: {
items: 6
},
1600: {
items: 6
}
}
});
}
$('#shoppinglistDetailMobile .owl-carousel').html(htmlDataMobile);
owl_slider();
This owl_slider function is call at time when my ajax request is success and my data is embeded in div.
Please Help me regarding this. Thanks In advance.