Skip to content

Instantly share code, notes, and snippets.

@salehahmadbabu
Created July 1, 2022 14:33
Show Gist options
  • Save salehahmadbabu/0549c6da4e202eae45c0d4ea6a17f3d4 to your computer and use it in GitHub Desktop.
Save salehahmadbabu/0549c6da4e202eae45c0d4ea6a17f3d4 to your computer and use it in GitHub Desktop.
<script>
;(function($){
$(window).on('load', function(){
var maxHeight = 0,
items = $('.customers-review .swiper-slide');
items.each(function () {
maxHeight = ($(this).height() > maxHeight ? $(this).height() : maxHeight);
});
//Assign maximum height to children
$('.customers-review .swiper-slide .elementskit-single-testimonial-slider').css( 'minHeight', maxHeight);
$('.customers-review .elementskit-commentor-content').css({'display': 'flex', 'align-items' : 'center', 'minHeight': maxHeight - 100});
});
})(jQuery);
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment