1 $(window).resize(function(event) { 2 /* Act on the event */ 3 if($(window).width()<1200){ 4 $('.info_imgscroll .bigimgbox').owlCarousel({ 5 'itemsDesktop':[1199,1], 6 'itemsDesktopSmall':[979,1], 7 'itemsTablet':[768,1], 8 'itemsMobile':[479,1] 9 }); 10 } 11 }); 12 if($(window).width()<1200){ 13 $('.info_imgscroll .bigimgbox').owlCarousel({ 14 'itemsDesktop':[1199,1], 15 'itemsDesktopSmall':[979,1], 16 'itemsTablet':[768,1], 17 'itemsMobile':[479,1] 18 }) 19 }