"Carousel bootstrap 3 with 2.3.2 style and swipe compatibility"
Bootstrap 3.0.3 Snippet by action360ca

<link href="//netdna.bootstrapcdn.com/bootstrap/3.0.3/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//netdna.bootstrapcdn.com/bootstrap/3.0.3/js/bootstrap.min.js"></script> <script src="//code.jquery.com/jquery-1.11.1.min.js"></script> <!------ Include the above in your HEAD tag ----------> <style> .carousel-control { position: absolute; top: 40%; left: 15px; width: 40px; height: 40px; margin-top: -20px; font-size: 25px; font-weight: 100; line-height: 30px; text-align: center; } .carousel-control.right { right: 15px; left: auto; } .carousel-caption { position: absolute; right: 0; bottom: 0; left: 0; padding: 15px; background: #333333; background: rgba(0, 0, 0, 0.75); } .carousel-caption p { margin-bottom: 0; } @media screen and (max-width: 700px){ .carousel-caption p { font-size: 13px; } .carousel-caption { background: rgba(0, 0, 0, 0.55); } .carousel-control { top: 20%; } } </style> <div class="container"> <div class="row"> <div id="myCarousel" class="carousel slide" style="max-width: 900px; margin: 0px auto;"> <ol class="carousel-indicators" style="padding-bottom: 42px;"> <li data-target="#myCarousel" data-slide-to="0" class="active"></li> <li data-target="#myCarousel" data-slide-to="1"></li> <li data-target="#myCarousel" data-slide-to="2"></li> </ol> <div class="carousel-inner"> <div class="active item" align="center"><a href="#"><img src="http://lorempixel.com/1920/1080/city/" class="img-rounded" alt="PS3 reparatie Haarlem"></a> </div> <div class="item" align="center"><a href="#"><img src="http://lorempixel.com/1920/1080/nature/" class="img-rounded" alt="Blu-ray Lens reparatie"></a> </div> <div class="item" align="center"><a href="#"><img src="http://lorempixel.com/1920/1080/food/" class="img-rounded" alt="Yellow Light of Death"></a> </div> </div> <a class="left carousel-control" href="#myCarousel" data-slide="prev"> <span class="glyphicon glyphicon-chevron-left" aria-hidden="true"></span></a> <a class="right carousel-control" href="#myCarousel" data-slide="next"> <span class="glyphicon glyphicon-chevron-right" aria-hidden="true"></span></a> </div> </div> </div> <script src="//code.jquery.com/mobile/1.4.0/jquery.mobile-1.4.0.min.js"></script> <script> // Add this to let the carousel start automatic $('.carousel').carousel(); </script> <script> $(document).ready(function() { $(".carousel-inner").swiperight(function() { $(this).parent().carousel('prev'); }); $(".carousel-inner").swipeleft(function() { $(this).parent().carousel('next'); }); }); </script>

Related: See More


Questions / Comments: