I attempted creating a logo slider using Owl carousel. Unfortunately, the carousel isn't showing up.
Here's how I envision my carousel to appear: https://i.sstatic.net/scDtT.png
This is the HTML code I used:
<div class="owl-carousel">
<div class="item"><img src="resources/img/c-logo.png" alt="Owl Image"></div>
<div class="item"><img src="resources/img/h-logo.png" alt="Owl Image"></div>
<div class="item"><img src="resources/img/a-logo.png" alt="Owl Image"></div>
<div class="item"><img src="resources/img/am_logo.png" alt="Owl Image"></div>
...
</div>
For CSS styling, this is what I have:
.owl-carousel .item{
margin: 3px;
}
.owl-carousel .item img{
display: block;
width: 100%;
height: auto;
}
In addition, I included the following JavaScript snippet in my HTML:
<script>
$(document).ready(function() {
$(".owl-carousel").owlCarousel({
autoPlay: 3000, //Set AutoPlay to 3 seconds
items : 4,
itemsDesktop : [1199,3],
itemsDesktopSmall : [979,3]
});
});
</script>
Lastly, I made sure to include these scripts and styles in my project file:
<script src="vendors/js/owl.carousel.js"></script>
<link rel="stylesheet" href="vendors/css/owl.carousel.css" type="text/css">
<link rel="stylesheet" href="vendors/css/owl.theme.css" type="text/css">
<script src="https://cdn.jsdelivr.net/jquery/3.0.0-beta1/jquery.min.js"></script>
<script src="https://cdn.jsdelivr.net/jquery/3.0.0-beta1/jquery.js"></script>
How can I troubleshoot why the slider is not visible? Is there a simpler method to achieve the desired slider appearance?