"Carousel"
Bootstrap 4.1.1 Snippet by trinhquan

<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 ----------> <div class="container"> <div id="carouselExampleIndicators" class="carousel slide owl-carousel owl-theme owl-loaded owl-drag" data-ride="carousel"> <ol class="carousel-indicators"> <li data-target="#carouselExampleIndicators" data-slide-to="0" class="active"></li> <li data-target="#carouselExampleIndicators" data-slide-to="1"></li> <li data-target="#carouselExampleIndicators" data-slide-to="2"></li> <li data-target="#carouselExampleIndicators" data-slide-to="3"></li> <li data-target="#carouselExampleIndicators" data-slide-to="4"></li> <li data-target="#carouselExampleIndicators" data-slide-to="5"></li> </ol> <div class="carousel-inner"> <div class="carousel-item active"> <div class="item"> <h1>1</h1> </div> </div> <div class="carousel-item"> <div class="item"> <h1>2</h1> </div> </div> <div class="carousel-item"> <div class="item"> <h1>3</h1> </div> </div> <div class="carousel-item"> <div class="item"> <h1>4</h1> </div> </div> <div class="carousel-item"> <div class="item"> <h1>5</h1> </div> </div> <div class="carousel-item"> <div class="item"> <h1>6</h1> </div> </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> </div>
body { background: #337ab7; margin: auto; } .carousel-inner { margin-top: 51px; } .item { background: #717171; text-align: center; min-height: 268px; padding: 100px 0; } h1 { color: #ffffff; font-size: 94px; }
$('.carousel').carousel({ interval: 3000, })

Related: See More


Questions / Comments: