Wishing you a wonderful day! I'm encountering an issue where only the first slide appears for a few seconds before disappearing completely. Strangely, if I use the side arrows or buttons before the slide disappears, it functions normally.
HTML
<header>
<div class="row row-content">
<div class="col">
<div id="mycarousel" class="carousel slide" data-ride="carousel">
<div class="carousel-inner" role="listbox">
<div class="carousel-item active">
<img src="img/img1.png" class="d-block img-fluid">
<div class="carousel-caption d-none d-md-block" alt="img1">
<h2>text</h2>
<p class="d-none d-sm-block">text</p>
</div>
</div>
<div class="carousel-item">
<img src="img/img2.png" class="d-block img-fluid">
<div class="carousel-caption d-none d-md-block" alt="img2">
<h2>text</h2>
<p class="d-none d-sm-block">text</p>
</div>
</div>
<div class="carousel-item">
<img src="img/img3.png" class="d-block img-fluid">
<div class="carousel-caption d-none d-md-block" alt="img3">
<h2>text</h2>
<p class="d-none d-sm-block">text</p>
</div>
</div>
</div>
<ol class="carousel-indicators">
<li data-target="#mycarousel"data-slide-to="0" class="active"></li>
<li data-target="#mycarousel"data-slide-to="1" class="active"></li>
<li data-target="#mycarousel"data-slide-to="2" class="active"></li>
</ol>
<a class="carousel-control-prev" href="#mycarousel" role="button" data-slide="prev">
<span class="carousel-control-prev-icon"></span>
</a>
<a class="carousel-control-next" href="#mycarousel" role="button" data-slide="next">
<span class="carousel-control-next-icon"></span>
</a>
</div>
</div>
</div>
</header>
CSS
.carousel-item {
height: 420px;
}
.carousel-item img {
position: absolute;
top: 0;
left: 0;
min-height: 420px;
}