I'm trying to use owl carousel jquery to make a responsive simple slider with 5 items and I want the middle image to be always bigger than the others. I've searched and tried to make this work from another questions in here, but it keeps not working for me.
Here's the code:
<div class="owl-carousel ">
<div class="item"><img src="assets/img/square-icon.jpg" alt="" style="max-width:400px"></div>
<div class="item"><img src="assets/img/square-icon2.jpg" alt="" style="max-width:400px"></div>
<div class="item"><img src="assets/img/square-icon.jpg" alt="" style="max-width:400px"></div>
<div class="item"><img src="assets/img/square-icon2.jpg" alt="" style="max-width:400px"></div>
<div class="item"><img src="assets/img/square-icon.jpg" alt="" style="max-width:400px"> </div>
<div class="item"><img src="assets/img/square-icon2.jpg" alt="" style="max-width:400px"></div>
<div class="item"><img src="assets/img/square-icon.jpg" alt="" style="max-width:400px"></div>
<div class="item"><img src="assets/img/square-icon2.jpg" alt="" style="max-width:400px"></div>
</div>
<script type="text/javascript">
$('.owl-carousel').owlCarousel({
loop:true,
margin:10,
responsiveClass:true,
responsive:{
0:{
items:1,
nav:true
},
600:{
items:3,
nav:false
},
1000:{
items:5,
nav:true,
loop:false
}
}
})
</script>
And what I added in owl.carousel.css:
.owl-item.active {
-webkit-transform: scale(1.8);
transform: scale(1.8);
}