A Pen by Nurdiana Atmanagara on CodePen.
Last active
May 7, 2020 12:39
-
-
Save version-control/ba4fa7e41ed4ce4b4d8c1342fe9c19e1 to your computer and use it in GitHub Desktop.
Carousel Bootstrap 4
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <div class="container"> | |
| <div id="demo" class="carousel slide" data-ride="carousel"> | |
| <!-- Indicators --> | |
| <ul class="carousel-indicators"> | |
| <li data-target="#demo" data-slide-to="0" class="active"></li> | |
| <li data-target="#demo" data-slide-to="1"></li> | |
| <li data-target="#demo" data-slide-to="2"></li> | |
| </ul> | |
| <!-- The slideshow --> | |
| <div class="carousel-inner"> | |
| <div class="carousel-item active"> | |
| <img src="https://www.w3schools.com/bootstrap4/la.jpg" alt="Los Angeles" width="1100" height="500"> | |
| </div> | |
| <div class="carousel-item"> | |
| <img src="https://www.w3schools.com/bootstrap4/chicago.jpg" alt="Chicago" width="1100" height="500"> | |
| </div> | |
| <div class="carousel-item"> | |
| <img src="https://www.w3schools.com/bootstrap4/ny.jpg" alt="New York" width="1100" height="500"> | |
| </div> | |
| </div> | |
| <!-- Left and right controls --> | |
| <a class="carousel-control-prev" href="#demo" data-slide="prev"> | |
| <span class="carousel-control-prev-icon"></span> | |
| </a> | |
| <a class="carousel-control-next" href="#demo" data-slide="next"> | |
| <span class="carousel-control-next-icon"></span> | |
| </a> | |
| </div> | |
| </div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script> | |
| <script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.0.0/js/bootstrap.min.js"></script> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <link href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.0.0/css/bootstrap.css" rel="stylesheet" /> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment