I am having the following problems getting the Bootstrap Carousel working:
- Indicators are not showing up at all.
- The Next and Previous button glyphicons are not working. Instead of left and right chevrons they are just displaying text. And they are both on the bottom left of the carousel div container instead of showing up in the middle vertically on the left and right sides. Also the functionality is not working.
- The animation stops after going from active slide 1 to slide 2.
When I first get the barebones example in there it seem to animate. But as I add in styling it seems to slow from about every 3 seconds to 10 seconds. And now at this point it stalls after the first time going from slide 1 to 2.
Here is the code for the page:
div.c-wrapper {
background-color: black;
width: 65%;
margin: auto;
border: 1px solid black;
}
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Car 1 Details</title>
<script src="https://www.w3schools.com/lib/w3.js"></script>
<!-- jQuery JavaScript -->
<script src="https://code.jquery.com/jquery-3.6.0.min.js" integrity="sha256-/xUj+3OJU5yExlq6GSYGSHk7tPXikynS7ogEvDej/m4=" crossorigin="anonymous"></script>
<!-- Bootstrap JavaScript -->
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/js/bootstrap.bundle.min.js" integrity="sha384-ka7Sk0Gln4gmtz2MlQnikT1wXgYsOg+OMhuP+IlRH9sENBO0LRn5q+8nbTov4+1p" crossorigin="anonymous"></script>
<!-- Bootstrap CSS -->
<!-- CSS only: not combined with popper -->
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" crossorigin="anonymous">
</head>
<body>
<div w3-include-html="include/header.html"></div>
<div class="container-fluid py-4">
<h3 class="text-center bg-primary py-2" style="border:1px solid black;">Car 1 Details</h3>
<!-- Bootstrap Carousel -->
<div class="c-wrapper">
<div id="cars-carousel" class="carousel slide" data-bs-ride="carousel">
<!-- Indicators -->
<ol class="carousel-indicators">
<li data-target="#cars-carousel" data-slide-to="0" class="active"></li>
<li data-target="#cars-carousel" data-slide-to="1"></li>
<li data-target="#cars-carousel" data-slide-to="2"></li>
</ol>
<!-- Wrapper for slides -->
<div class="carousel-inner">
<div class="carousel-item active">
<img src="https://via.placeholder.com/800x300" class="d-block w-100" alt="Slide 1">
</div>
<div class="carousel-item">
<img src="https://via.placeholder.com/800x300" class="d-block w-100" alt="Slide 2">
</div>
<div class="carousel-item">
<img src="https://via.placeholder.com/800x300" class="d-block w-100" alt="Slide 3">
</div>
</div>
<!-- Left and right controls -->
<a class="left carousel-control" href="#cars-carousel" data-slide="prev">
<span class="glyphicon glyphicon-chevron-left"></span>
<span class="sr-only">Previous</span>
</a>
<a class="right carousel-control" href="#cars-carousel" data-slide="next">
<span class="glyphicon glyphicon-chevron-right"></span>
<span class="sr-only">Next</span>
</a>
</div>
</div>
<!-- end Bootstrap Carousel -->
</div>
<div class="spacer"></div>
<div w3-include-html="include/footer.html"></div>
</body>
Goes from slide 1 to slide 2 after about 4 seconds and stops.

