"Swiper Slider"
Bootstrap 4.1.1 Snippet by subhash4web

<link href="//maxcdn.bootstrapcdn.com/bootstrap/4.1.1/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//maxcdn.bootstrapcdn.com/bootstrap/4.1.1/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 ----------> <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>Swiper demo</title> <meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1"> <link rel="stylesheet" href="https://unpkg.com/swiper/css/swiper.min.css"> </head> <body> <div class="swiper-container" dir="rtl"> <div class="swiper-wrapper"> <div class="swiper-slide"><img src="http://inn.spb.ru/images/400/DSC100419761.jpg"><div class="slide-content">Slide 1</div></div> <div class="swiper-slide"><img src="http://inn.spb.ru/images/400/DSC100419761.jpg"><div class="slide-content">Slide 2</div></div> <div class="swiper-slide"><img src="http://inn.spb.ru/images/400/DSC100419761.jpg"><div class="slide-content">Slide 3</div></div> <div class="swiper-slide"><img src="http://inn.spb.ru/images/400/DSC100419761.jpg"><div class="slide-content">Slide 4</div></div> </div> <div class="swiper-pagination"></div> <div class="swiper-button-prev"></div> <div class="swiper-button-next"></div> </div> <script src="https://unpkg.com/swiper/js/swiper.min.js"></script> <script> var swiper = new Swiper('.swiper-container', { loop: true, slidesPerView: 1, autoplay: { delay: 10000, disableOnInteraction: false, }, pagination: { el: '.swiper-pagination', clickable: true, }, navigation: { nextEl: '.swiper-button-next', prevEl: '.swiper-button-prev', }, }); </script> </body> </html>
html, body { position: relative; height: 100%; } body { background: #eee; font-family: Helvetica Neue, Helvetica, Arial, sans-serif; font-size: 14px; color:#000; margin: 0; padding: 0; } .swiper-container { width: 100%; height: 100%; } .swiper-slide { text-align: center; font-size: 18px; background: #fff; /* Center slide text vertically */ display: flex; justify-content: center; align-items: center; } .swiper-slide{ background:url("http://www.sclance.com/backgrounds/white-light-background/white-light-background_2397421.png") center top no-repeat; background-size:cover; } .swiper-slide img{ background:url("http://www.sclance.com/backgrounds/white-light-background/white-light-background_2397421.png") center top no-repeat; object-fit: cover; width:100%; } .slide-content{ position:absolute;}

Related: See More


Questions / Comments: