Custom Carousel
<div class="container" style="max-width: 928px;"> <div class="row"> <div class="col-lg-12 col-md-12 mb-5 p-0"> <div id="style1" class="carousel slide style-custom-1" data-bs-ride="carousel"> <ol class="carousel-indicators"> <li data-bs-target="#style1" data-bs-slide-to="0" class="active"></li> <li data-bs-target="#style1" data-bs-slide-to="1"></li> <li data-bs-target="#style1" data-bs-slide-to="2"></li> </ol> <div class="carousel-inner"> <div class="carousel-item active"> <img class="d-block w-100 slide-image" src="../src/assets/img/1.jpeg" alt="First slide"> <div class="carousel-caption"> ................. </div> </div> <div class="carousel-item"> <img class="d-block w-100 slide-image" src="../src/assets/img/3.jpeg" alt="Second slide"> <div class="carousel-caption"> ................. </div> </div> <div class="carousel-item"> <img class="d-block w-100 slide-image" src="../src/assets/img/2.jpg" alt="Third slide"> <div class="carousel-caption"> ................. </div> </div> </div> <a class="carousel-control-prev" href="#style1" role="button" data-bs-slide="prev"> <span class="carousel-control-prev-icon" aria-hidden="true"></span> <span class="visually-hidden">Previous</span> </a> <a class="carousel-control-next" href="#style1" role="button" data-bs-slide="next"> <span class="carousel-control-next-icon" aria-hidden="true"></span> <span class="visually-hidden">Next</span> </a> </div> </div> </div> </div>
Slides only
<div id="carouselExampleSlidesOnly" class="carousel slide" data-bs-ride="carousel"> <div class="carousel-inner"> <div class="carousel-item active"> <img class="d-block w-100" src="../src/assets/img/1.jpeg" alt="First slide"> </div> <div class="carousel-item"> <img class="d-block w-100" src="../src/assets/img/2.jpg" alt="Second slide"> </div> <div class="carousel-item"> <img class="d-block w-100" src="../src/assets/img/3.jpeg" alt="Third slide"> </div> </div> </div>
With controls
<div id="carouselExampleControls" class="carousel slide" data-bs-ride="carousel"> <div class="carousel-inner"> <div class="carousel-item active"> <img class="d-block w-100" src="../src/assets/img/3.jpeg" alt="First slide"> </div> <div class="carousel-item"> <img class="d-block w-100" src="../src/assets/img/2.jpg" alt="Second slide"> </div> <div class="carousel-item"> <img class="d-block w-100" src="../src/assets/img/1.jpeg" alt="Third slide"> </div> </div> <a class="carousel-control-prev" href="#carouselExampleControls" role="button" data-bs-slide="prev"> <span class="carousel-control-prev-icon" aria-hidden="true"></span> <span class="visually-hidden">Previous</span> </a> <a class="carousel-control-next" href="#carouselExampleControls" role="button" data-bs-slide="next"> <span class="carousel-control-next-icon" aria-hidden="true"></span> <span class="visually-hidden">Next</span> </a> </div>
With indicators
<div id="carouselExampleIndicators" class="carousel slide" data-bs-ride="carousel"> <ol class="carousel-indicators"> <li data-bs-target="#carouselExampleIndicators" data-bs-slide-to="0" class="active m"></li> <li data-bs-target="#carouselExampleIndicators" data-bs-slide-to="1"></li> <li data-bs-target="#carouselExampleIndicators" data-bs-slide-to="2"></li> </ol> <div class="carousel-inner"> <div class="carousel-item active"> <img class="d-block w-100" src="../src/assets/img/2.jpg" alt="First slide"> </div> <div class="carousel-item"> <img class="d-block w-100" src="../src/assets/img/1.jpeg" alt="Second slide"> </div> <div class="carousel-item"> <img class="d-block w-100" src="../src/assets/img/3.jpeg" alt="Third slide"> </div> </div> <a class="carousel-control-prev" href="#carouselExampleIndicators" role="button" data-bs-slide="prev"> <span class="carousel-control-prev-icon" aria-hidden="true"></span> <span class="visually-hidden">Previous</span> </a> <a class="carousel-control-next" href="#carouselExampleIndicators" role="button" data-bs-slide="next"> <span class="carousel-control-next-icon" aria-hidden="true"></span> <span class="visually-hidden">Next</span> </a> </div>
Copyright © 2022 DesignReset, All rights reserved.
Coded with