Bootstrap 4 Responsive Slider Example

Bootstrap 4 Responsive Slider Example:
Bootstrap 4 slider came up with 5 different devices responsiveness along with slider next/previous button and the slider indicator. Which also came up with the text over the slider.

Bootstrap 4 is released recently with major update.

As per Bootstrap official changelog,

Bootstrap 4 has been a massive undertaking that touches nearly every line of code. We’re stoked to share it with you and hear your feedback. We’ve got a lot of news to share with you, so let’s jump right into it.

 
We have published a bootstrap 4 all classes list something like cheat sheet here,

 

Bootstrap 4 Cheat Sheet – All classes List

 

 

Bootstrap 4 Responsive Slider Source code:

[html]
<!DOCTYPE html>
<html lang=”en”>
<head>
<!– Required meta tags –>
<meta charset=”utf-8″>
<meta name=”viewport” content=”width=device-width, initial-scale=1, shrink-to-fit=no”>

<!– Bootstrap CSS –>
<link rel=”stylesheet” href=”https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-alpha.6/css/bootstrap.min.css” integrity=”sha384-rwoIResjU2yc3z8GV/NPeZWAv56rSmLldC3R/AZzGRnGxQQKnKkoFVhFQhNUwEyJ” crossorigin=”anonymous”>
</head>
<body>
<nav class=”navbar fixed-top navbar-toggleable-md navbar-inverse bg-primary” id=”slide-nav”>
<button class=”navbar-toggler navbar-toggler-left” type=”button” data-toggle=”collapse” data-target=”#navbarTopMenu” aria-controls=”navbarTopMenu” aria-expanded=”false” aria-label=”Toggle navigation”>
<span class=”navbar-toggler-icon”></span>
</button>
<div class=”container”>
<a class=”navbar-brand” href=”#”>Bootstrap 4 Slider</a>
</div>
<!–/.container inside nav–>
</nav>

<div class=”container” style=”margin-top:5rem;”>
<h1>Bootstrap 4 Full screen responsive slider example</h1>
<div class=”row”>
<div id=”carouselExampleIndicators” class=”carousel slide” 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>
</ol>
<div class=”carousel-inner” role=”listbox”>
<div class=”carousel-item active”>
<img class=”d-block img-fluid” src=”image1.jpg” alt=”First slide”>
</div>
<div class=”carousel-item”>
<img class=”d-block img-fluid” src=”image2.jpg” alt=”Second slide”>
</div>
<div class=”carousel-item”>
<img class=”d-block img-fluid” src=”image3.jpg” 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>
</div> <!–/.carousal row ends –>
</div>
</div>
<!– jQuery first, then Tether, then Bootstrap JS. –>
<script src=”https://code.jquery.com/jquery-3.1.1.slim.min.js” integrity=”sha384-A7FZj7v+d/sdmMqp/nOQwliLvUsJfDHW+k9Omg/a/EheAdgtzNs3hpfag6Ed950n” crossorigin=”anonymous”></script>
<script src=”https://cdnjs.cloudflare.com/ajax/libs/tether/1.4.0/js/tether.min.js” integrity=”sha384-DztdAPBWPRXSA/3eYEEUWrWCy7G5KFbe8fFjk5JAIxUYHKkDx6Qin1DkWx51bBrb” crossorigin=”anonymous”></script>
<script src=”https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-alpha.6/js/bootstrap.min.js” integrity=”sha384-vBWWzlZJ8ea9aCX4pEW3rVHjgjt7zpkNpZk+02D9phzyeVkE+jo0ieGizqPLForn” crossorigin=”anonymous”></script>
</body>
</html>
[/html]

 

Bootstrap 4 Responsive Slider Live Demo:
download

Leave a Reply