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-ride="carousel"> <ol class="carousel-indicators"> <li data-target="#style1" data-slide-to="0" class="active"></li> <li data-target="#style1" data-slide-to="1"></li> <li data-target="#style1" data-slide-to="2"></li> </ol> <div class="carousel-inner"> <div class="carousel-item active"> <img class="d-block w-100 slide-image" 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="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="assets/img/2.jpg" alt="Third slide"> <div class="carousel-caption"> ................. </div> </div> </div> <a class="carousel-control-prev" href="#style1" 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="#style1" role="button" data-slide="next"> <span class="carousel-control-next-icon" aria-hidden="true"></span> <span class="sr-only">Next</span> </a> </div> </div> </div> </div>
Slides only
<div id="carouselExampleSlidesOnly" class="carousel slide" data-ride="carousel"> <div class="carousel-inner"> <div class="carousel-item active"> <img class="d-block w-100" src="assets/img/1.jpeg" alt="First slide"> </div> <div class="carousel-item"> <img class="d-block w-100" src="assets/img/2.jpg" alt="Second slide"> </div> <div class="carousel-item"> <img class="d-block w-100" src="assets/img/3.jpeg" alt="Third slide"> </div> </div> </div>
With controls
<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/img/3.jpeg" alt="First slide"> </div> <div class="carousel-item"> <img class="d-block w-100" src="assets/img/2.jpg" alt="Second slide"> </div> <div class="carousel-item"> <img class="d-block w-100" src="assets/img/1.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> </div>
With indicators
<div id="carouselExampleIndicators" class="carousel slide" data-ride="carousel"> <ol class="carousel-indicators"> <li data-target="#carouselExampleIndicators" data-slide-to="0" class="active m"></li> <li data-target="#carouselExampleIndicators" data-slide-to="1"></li> <li data-target="#carouselExampleIndicators" data-slide-to="2"></li> </ol> <div class="carousel-inner"> <div class="carousel-item active"> <img class="d-block w-100" src="assets/img/2.jpg" alt="First slide"> </div> <div class="carousel-item"> <img class="d-block w-100" src="assets/img/1.jpeg" alt="Second slide"> </div> <div class="carousel-item"> <img class="d-block w-100" src="assets/img/3.jpeg" alt="Third slide"> </div> </div> <a class="carousel-control-prev" href="#carouselExampleIndicators" 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="#carouselExampleIndicators" role="button" data-slide="next"> <span class="carousel-control-next-icon" aria-hidden="true"></span> <span class="sr-only">Next</span> </a> </div>
Copyright © 2021 DesignReset, All rights reserved.
Coded with