I've successfully placed containers inside my Bootstrap Carousel slides that overlay the image with text and a link. It looks great initially, but I'm facing an issue where after switching to the next slide, I can't return to the one with the container. Any suggestions on why this might be happening? Appreciate any help in advance.
https://i.sstatic.net/ihZb6.png)
Here's my code:
<div id="wrapper-slides">
<div id="carousel-example-generic" class="carousel slide" data-ride="carousel">
<ol class="carousel-indicators">
<li data-target="#carousel-example-generic" data-slide-to="0" class="active"></li>
<li data-target="#carousel-example-generic" data-slide-to="1"></li>
<li data-target="#carousel-example-generic" data-slide-to="2"></li>
</ol>
<div class="carousel-inner">
<div class="carousel-item active">
<div id="box1">
...
</div>
<img src="images/anasislaunch.jpg" alt="First slide" width="100%">
</div>
<div class="carousel-item">
<img src="images/f-35.jpg" alt="Second slide" width="100%">
</div>
<div class="carousel-item">
<img src="images/heli.png" alt="Third slide" width="100%">
</div>
</div>
<a class="carousel-control-prev" href="#carousel-example-generic" role="button" data-slide="prev">
...
</a>
<a class="carousel-control-next" href="#carousel-example-generic" role="button" data-slide="next">
...
</a>
</div>
</div>
<script type="text/javascript" src="js/jquery-3.5.1.min.js"></script>
<script type="module" src="js/carousel.js"></script>
<script type="text/javascript" src="js/util.js"></script>
#box1 {
...
}
...
.carousel-caption {
...
}