jQuery(function($) { "use strict"; $(document).ready(function(){ $('.row').each(function(){ var highestBox = 0; $('.sameheight', this).each(function(){ if($(this).height() > highestBox) { highestBox = $(this).height(); } }); $('.sameheight',this).height(highestBox); }); }); /* Owl Slider ============================================== */ $('#main-banner').owlCarousel({ autoplay: true, center: true, loop: true, nav: true, dots:false, margin:10, responsiveClass:true, responsive:{ 0:{ items:1 }, 600:{ items:2 }, 1000:{ items:3 } } }); $('#custom1').owlCarousel({ autoplay: true, nav: true, dots:false, animateOut: 'slideOutDown', animateIn: 'flipInX', items:1, smartSpeed:450 }); });