Created
July 1, 2022 14:33
-
-
Save salehahmadbabu/0549c6da4e202eae45c0d4ea6a17f3d4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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