"Slider- bs4- swiper"
Bootstrap 4.0.0 Snippet by jeevan123456

<link href="//maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js"></script> <script src="//cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script> <!------ Include the above in your HEAD tag ----------> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/Swiper/4.3.3/css/swiper.min.css"> <script src="https://cdnjs.cloudflare.com/ajax/libs/Swiper/4.3.3/js/swiper.min.js"></script> <div class="container"> <div class="row text-center mb-3"> <div class="col-md-12"> <h2>Top Lists of Safest Car</h2> <p>Lorem Ipsum pagination consumpim in definiction.</p> <hr> </div> </div> <div class="row"> <!-- Swiper --> <div class="swiper-container"> <div class="swiper-wrapper"> <div class="swiper-slide"> <div class="row"> <div class="col-md-3"> <div class="card"> <div class="card-img"><img src="https://img.gaadicdn.com/images/carexteriorimages/upcoming/360x240/Jeep/Jeep-Renegade/047.jpg"></div> <div class="card-body"> <h5>Renault KWID</h5> <h4 class="pt-1 pb-2">Rs. 5.44-6.77 Lac</h4> <button type= "button" class="btn btn-outline-danger btn-block btn-sm">Lets Judge it.</button> </div> </div> </div> <div class="col-md-3"> <div class="card"> <div class="card-img"><img src="https://img.gaadicdn.com/images/carexteriorimages/upcoming/360x240/Jeep/Jeep-Renegade/047.jpg"></div> <div class="card-body"> <h5>Renault KWID</h5> <h4 class="pt-1 pb-2">Rs. 5.44-6.77 Lac</h4> <button type= "button" class="btn btn-outline-danger btn-block btn-sm">Lets Judge it.</button> </div> </div> </div> <div class="col-md-3"> <div class="card"> <div class="card-img"><img src="https://img.gaadicdn.com/images/carexteriorimages/upcoming/360x240/Jeep/Jeep-Renegade/047.jpg"></div> <div class="card-body"> <h5>Renault KWID</h5> <h4 class="pt-1 pb-2">Rs. 5.44-6.77 Lac</h4> <button type= "button" class="btn btn-outline-danger btn-block btn-sm">Lets Judge it.</button> </div> </div> </div> <div class="col-md-3"> <div class="card"> <div class="card-img"><img src="https://img.gaadicdn.com/images/carexteriorimages/upcoming/360x240/Jeep/Jeep-Renegade/047.jpg"></div> <div class="card-body"> <h5>Renault KWID</h5> <h4 class="pt-1 pb-2">Rs. 5.44-6.77 Lac</h4> <button type= "button" class="btn btn-outline-danger btn-block btn-sm">Lets Judge it.</button> </div> </div> </div> </div> </div> <div class="swiper-slide"> <div class="row"> <div class="col-md-3"> <div class="card"> <div class="card-img"><img src="https://img.gaadicdn.com/images/carexteriorimages/upcoming/360x240/Jeep/Jeep-Renegade/047.jpg"></div> <div class="card-body"> <h5>Renault KWID</h5> <h4 class="pt-1 pb-2">Rs. 5.44-6.77 Lac</h4> <button type= "button" class="btn btn-outline-danger btn-block btn-sm">Lets Judge it.</button> </div> </div> </div> <div class="col-md-3"> <div class="card"> <div class="card-img"><img src="https://img.gaadicdn.com/images/carexteriorimages/upcoming/360x240/Jeep/Jeep-Renegade/047.jpg"></div> <div class="card-body"> <h5>Renault KWID</h5> <h4 class="pt-1 pb-2">Rs. 5.44-6.77 Lac</h4> <button type= "button" class="btn btn-outline-danger btn-block btn-sm">Lets Judge it.</button> </div> </div> </div> <div class="col-md-3"> <div class="card"> <div class="card-img"><img src="https://img.gaadicdn.com/images/carexteriorimages/upcoming/360x240/Jeep/Jeep-Renegade/047.jpg"></div> <div class="card-body"> <h5>Renault KWID</h5> <h4 class="pt-1 pb-2">Rs. 5.44-6.77 Lac</h4> <button type= "button" class="btn btn-outline-danger btn-block btn-sm">Lets Judge it.</button> </div> </div> </div> <div class="col-md-3"> <div class="card"> <div class="card-img"><img src="https://img.gaadicdn.com/images/carexteriorimages/upcoming/360x240/Jeep/Jeep-Renegade/047.jpg"></div> <div class="card-body"> <h5>Renault KWID</h5> <h4 class="pt-1 pb-2">Rs. 5.44-6.77 Lac</h4> <button type= "button" class="btn btn-outline-danger btn-block btn-sm">Lets Judge it.</button> </div> </div> </div> </div> </div> <div class="swiper-slide"> <div class="row"> <div class="col-md-3"> <div class="card"> <div class="card-img"><img src="https://img.gaadicdn.com/images/carexteriorimages/upcoming/360x240/Jeep/Jeep-Renegade/047.jpg"></div> <div class="card-body"> <h5>Renault KWID</h5> <h4 class="pt-1 pb-2">Rs. 5.44-6.77 Lac</h4> <button type= "button" class="btn btn-outline-danger btn-block btn-sm">Lets Judge it.</button> </div> </div> </div> <div class="col-md-3"> <div class="card"> <div class="card-img"><img src="https://img.gaadicdn.com/images/carexteriorimages/upcoming/360x240/Jeep/Jeep-Renegade/047.jpg"></div> <div class="card-body"> <h5>Renault KWID</h5> <h4 class="pt-1 pb-2">Rs. 5.44-6.77 Lac</h4> <button type= "button" class="btn btn-outline-danger btn-block btn-sm">Lets Judge it.</button> </div> </div> </div> <div class="col-md-3"> <div class="card"> <div class="card-img"><img src="https://img.gaadicdn.com/images/carexteriorimages/upcoming/360x240/Jeep/Jeep-Renegade/047.jpg"></div> <div class="card-body"> <h5>Renault KWID</h5> <h4 class="pt-1 pb-2">Rs. 5.44-6.77 Lac</h4> <button type= "button" class="btn btn-outline-danger btn-block btn-sm">Lets Judge it.</button> </div> </div> </div> <div class="col-md-3"> <div class="card"> <div class="card-img"><img src="https://img.gaadicdn.com/images/carexteriorimages/upcoming/360x240/Jeep/Jeep-Renegade/047.jpg"></div> <div class="card-body"> <h5>Renault KWID</h5> <h4 class="pt-1 pb-2">Rs. 5.44-6.77 Lac</h4> <button type= "button" class="btn btn-outline-danger btn-block btn-sm">Lets Judge it.</button> </div> </div> </div> </div> </div> </div> <!-- Add Pagination --> <div class="swiper-pagination"></div> <!-- Add Arrows --> <div class="swiper-button-next"></div> <div class="swiper-button-prev"></div> </div> </div> </div>
.divider {border: 1px solid #ccc;} img {width:100%;} .swiper-container { width: 100%; height: 100%; } .swiper-slide { text-align: center; font-size: 18px; background: #fff; /* Center slide text vertically */ display: -webkit-box; display: -ms-flexbox; display: -webkit-flex; display: flex; -webkit-box-pack: center; -ms-flex-pack: center; -webkit-justify-content: center; justify-content: center; -webkit-box-align: center; -ms-flex-align: center; -webkit-align-items: center; align-items: center; }
var swiper = new Swiper('.swiper-container', { navigation: { nextEl: '.swiper-button-next', prevEl: '.swiper-button-prev', }, });

Related: See More


Questions / Comments:

Previous and Next buttons are not Coming for Second slide while appending data dynamically

NarravulaNaveen () - 4 months ago - Reply 0


The Prev and Next buttons are attaching to First slide while adding data dynamically and Initialising the Swiper in Js

NarravulaNaveen () - 4 months ago - Reply 0