Skip to content

Instantly share code, notes, and snippets.

@Mahfuj1990
Mahfuj1990 / Carousal.html
Created April 27, 2023 07:59
Carousal (html,JavaScript, and css)
<div class="carousel">
<img class="carousel-image" src="image1.jpg" alt="Image 1">
<img class="carousel-image" src="image2.jpg" alt="Image 2">
<img class="carousel-image" src="image3.jpg" alt="Image 3">
<button class="carousel-button" id="prevBtn">Previous</button>
<button class="carousel-button" id="nextBtn">Next</button>
</div>
@Mahfuj1990
Mahfuj1990 / style.css
Created April 27, 2023 08:01
Carousal
.carousel {
width: 500px;
height: 300px;
overflow: hidden;
position: relative;
}
.carousel-image {
width: 100%;
height: 100%;