Despite trying to adjust the height and data-interval time, I am unable to get the desired effect. The image is not sliding as intended. How can I resolve this issue?
.carousel img{
height: 50%;
}
.carousel-inner .carousel-item {
transition: -webkit-transform 2s ease;
transition: transform 2s ease;
transition: transform 2s ease, -webkit-transform 2s ease;
}
<div id="carouselExampleControls" class="carousel slide" data-ride="carousel">
<div class="carousel-inner">
<div class="carousel-item active">
<img class="d-block w-100" src="/assets/images/slide1.jpg" alt="First slide">
</div>
<div class="carousel-item active">
<img class="d-block w-100" src="/assets/images/slide2.jpg" alt="Second slide">
</div>
<div class="carousel-item active">
<img class="d-block w-100" src="/assets/images/slide3.jpeg" alt="Third slide">
</div>
</div>
<a class="carousel-control-prev" href="#carouselExampleControls" 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="#carouselExampleControls" role="button" data-slide="next">
<span class="carousel-control-next-icon" aria-hidden="true"></span>
<span class="sr-only">Next</span>
</a>