"Carousel bootstrap 3 with mobile 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: 20px; height: 0; margin-top: -20px; font-size: 25px; font-weight: 100; color: #ffffff; text-align: center; background: none; opacity: 0.6; } .carousel-control.right { right: 15px; left: auto; } .carousel-indicators { bottom: 0; } .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: 52%; } } </style> <div class="container" style="padding-left: 0px; padding-right: 0px"> <div class="row"> <div id="myCarousel" class="carousel slide" data-interval="2700" style="max-width: 1170px; margin: 0px auto;"> <ol class="carousel-indicators"> <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> <li data-target="#myCarousel" data-slide-to="3"></li> </ol> <div class="carousel-inner"> <div class="active item" align="center"><a href="https://www.sportinglife.ca/c/mens-canada-goose" target="_parent"><img src="https://www.sportinglife.ca/images/categories/carousel/carousel_goose_mens.jpg" alt=""></a> </div> <div class="item" align="center"><a href="https://www.sportinglife.ca/c/ladies-canada-goose" target="_parent"><img src="https://www.sportinglife.ca/images/categories/carousel/carousel_goose_womens.jpg" alt=""></a> </div> <div class="item" align="center"><a href="https://www.sportinglife.ca/c/junior-canada-goose" target="_parent"><img src="https://www.sportinglife.ca/images/categories/carousel/carousel_goose_kids.jpg" alt=""></a> </div> <div class="item" align="center"><a href="https://www.sportinglife.ca/b/the-north-face" target="_parent"><img src="https://www.sportinglife.ca/images/categories/carousel/carousel_TNF.jpg" alt=""></a> </div> </div> <a class="left carousel-control" style="top: 50%;" href="#myCarousel" role="button" data-slide="prev"> <span class="glyphicon glyphicon-chevron-left hidden-xs" aria-hidden="true"></span> </a> <a class="right carousel-control" style="top: 50%;" href="#myCarousel" role="button" data-slide="next"> <span class="glyphicon glyphicon-chevron-right hidden-xs" 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> $(document).ready(function() { $(".carousel-inner").swiperight(function() { $(this).parent().carousel('prev'); }); $(".carousel-inner").swipeleft(function() { $(this).parent().carousel('next'); }); $('.carousel').carousel(); $.mobile.loading().hide(); }); </script>

Related: See More


Questions / Comments: