I came across this carousel and I'm trying to figure out how to integrate it seamlessly with the latest Bootstrap 4 version.
< script >
$('#recipeCarousel').carousel({
interval: 10000
})
<
/script>
.carousel-inner .carousel-item-right.active,
.carousel-inner .carousel-item-next {
transform: translateX(33.33%);
}
.carousel-inner .carousel-item-left.active,
.carousel-inner .carousel-item-prev {
transform: translateX(-33.33%)
}
.carousel-inner .carousel-item-right,
.carousel-inner .carousel-item-left {
transform: translateX(0);
}
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<div class="container text-center my-3">
<h2>Bootstrap 4 Multiple Item Carousel</h2>
<div class="row mx-auto my-auto">
<div id="recipeCarousel" class="carousel slide w-100" data-ride="carousel">
<div class="carousel-inner" role="listbox">
<div class="carousel-item active">
<img class="d-block col-4 img-fluid" src="images/Action%201.jpg">
</div>
<div class="carousel-item">
<img class="d-block col-4 img-fluid" src="images/Action%202.jpg">
</div>
<div class="carousel-item">
<img class="d-block col-4 img-fluid" src="images/Action%203.jpg">
</div>
</div>
<a class="carousel-control-prev" href="#recipeCarousel" role="button" data-slide="prev">
<span class="carousel-control-prev-icon" aria-hidden="true"></span>
<span class="sr-only">Previous</span>
</a>
<a class="carousel-control-next" href="#recipeCarousel" role="button" data-slide="next">
<span class="carousel-control-next-icon" aria-hidden="true"></span>
<span class="sr-only">Next</span>
</a>
</div>
</div>
<h4>Advances one slide at a time</h4>
</div>
Has anyone been successful in integrating this carousel with the latest Bootstrap version? It seems to work fine using bootstrap 4.0, but with the newest version, it only displays one image on the left at a time.