" bootstrap carousel as background slider with parallax effect"
Bootstrap 3.3.0 Snippet by kamranshahid

<link href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/js/bootstrap.min.js"></script> <script src="//code.jquery.com/jquery-1.11.1.min.js"></script> <!------ Include the above in your HEAD tag ----------> <!--Banner starts here--> <section id="banner"> <div class="row"> <div class="col-md-12"> <div id="bg-slider" class="carousel slide" data-ride="carousel"> <!-- Wrapper for slides --> <div class="carousel-inner" role="listbox"> <div class="item active one"> <div class="carousel-caption"> <h2>Lorem Ipsum is simply dummy text of the printing</h2> <p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.</p> </div> </div> <div class="item two"> <div class="carousel-caption"> <h2>Lorem Ipsum is simply dummy text of the printing 2</h2> <p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.</p> </div> </div> <div class="item three"> <div class="carousel-caption"> <h2>Lorem Ipsum is simply dummy text of the printing 3</h2> <p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.</p> </div> </div> </div> </div> </div> </div> </section> <!--Banner ends here-->
.carousel .item { -webkit-transition: opacity 1s; -moz-transition: opacity 1s; -ms-transition: opacity 1s; -o-transition: opacity 1s; transition: opacity 1s; width: 100%; height: 700px; -webkit-background-size: cover; -moz-background-size: cover; -o-background-size: cover; background-size: cover; } .carousel .one { background: url(http://placehold.it/1920X800) no-repeat center center fixed; } .carousel .two { background: url(http://placehold.it/1920X800) no-repeat center center fixed; } .carousel .three { background: url(http://placehold.it/1920X800) no-repeat center center fixed; } .carousel .active { opacity: 1 !important; } .carousel .active.left { left:0; opacity:0; z-index:2; }
<script type="text/javascript"> $(document).ready(function() { $('.carousel').carousel({interval: 1000}); }); </script>

Related: See More


Questions / Comments: