Here is the code snippet that I am working with:
$(document).ready(function() {
$('.owl-carousel').owlCarousel({
loop:true,
items:4,
autoplay:true,
autoplayTimeout:2000,
autoplayHoverPause:true
});
});
#owl-demo .item{
margin: 3px;
}
#owl-demo .item img{
display: block;
height: auto;
}
<div id="owl-demo" class="owl-carousel">
<div class="item"><img src='public/media/image/rabobank.webp' alt='' style='height: 122px !important;'/></div>
<div class="item"><img src='public/media/image/sep.webp' alt='' style='height: 122px !important;'/></div>
<div class="item"><img src='public/media/image/rotary.webp' alt='' style='height: 122px !important;'/></div>
<div class="item"><img src='public/media/image/woordbeeld.webp' alt='' style='height: 122px !important;'/></div>
<div class="item"><img src='public/media/image/kiwanis.webp' alt='' style='height: 60px !important; margin-bottom: 2% !important;'/></div>
<div class="item"><img src='public/media/image/-.webp' alt='' style='height: 122px !important;'/></div>
<div class="item"><img src='public/media/image/dj.webp' alt='' style='height: 122px !important;'/></div>
</div>
<script src="<?= $this->getThemeURL(); ?>Assets/Js/owl.carousel.min.js"></script>
I will show an image of how it currently appears ->. Image However, this is not the desired look. How can I adjust it to use the original dimensions of the images?