i have the below html and css code. i am trying to achieve a scrollable row of images without javascript. with the code below, when the left or right button is clicked, the initial row of images should disappear and be replaced with a new row of images. appreciate all inputs and thanks in advance
html
<h4 style="text-align: center; margin-top: 100px;">WE THINK YOU'D LIKE..</h4>
<div class="carousel-container">
<img src="aspect images/arrow left.png" width="50px" style="margin-bottom: 40px; margin-right: -20px;">
<div class="carousel-wrapper">
<img src="aspect images/lily of the valley.png" width="250" alt="Lily of the Valley">
<div class="item-details">
<p>Lily of the Valley<br>$65.00</p>
<img src="aspect images/plus_button.png" alt="Add to cart">
</div>
</div>
<div class="carousel-wrapper">
<img src="aspect images/Sundial Portulaca.png" width="250" alt="Sundial Portulaca">
<div class="item-details">
<p>Sundial Portulaca<br>$45.00</p>
<img src="aspect images/plus_button.png" alt="Add to cart">
</div>
</div>
<div class="carousel-wrapper">
<img src="aspect images/Iris Snow Queen.png" width="250" alt="Iris Snow Queen">
<div class="item-details">
<p>Iris Snow Queen<br>$85.00</p>
<img src="aspect images/plus_button.png" alt="Add to cart">
</div>
</div>
<div class="carousel-wrapper">
<img src="aspect images/Gold Hibiscus.png" width="250" alt="Gold Hibiscus">
<div class="item-details">
<p>Gold Hibiscus<br>$55.00</p>
<img src="aspect images/plus_button.png" alt="Add to cart">
</div>
</div>
<div class="carousel-wrapper">
<img src="aspect images/Sunset Poppies.png" width="250" alt="Sunset Poppies">
<div class="item-details">
<p>Sunset Poppies<br>$75.00</p>
<img src="aspect images/plus_button.png" alt="Add to cart">
</div>
</div>
<img src="aspect images/arrow right.png" width="50px" style="margin-bottom: 40px; margin-left: -20px;">
</div>
css
.carousel-container {
display: flex;
justify-content: space-between;
align-items: center;
margin: 30px 30px;
}
.carousel-wrapper {
display: flex;
flex-direction: column;
align-items: center;
}
.carousel-wrapper img {
border-radius: 10px;
overflow: hidden;
width: 200px;
}
.carousel-wrapper p {
margin-top: 10px;
text-align: left;
align-self: flex-start;
}
.item-details {
display: flex;
justify-content: space-between;
align-items: center;
width: 200px;
margin-top: 10px;
}
.item-details p {
margin: 0;
text-align: left;
font-weight: bold;
}
.item-details img {
width: 30px;
}
.item-details img:last-of-type {
margin-left: 10px;
}