"Thumbnail Carousel - Single image sliding"
Bootstrap 3.2.0 Snippet by PRADNYA

<link href="//netdna.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//netdna.bootstrapcdn.com/bootstrap/3.2.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 ----------> <div class="container"> <div class="row"> <div class="span12"> <div class="well"> <div id="myCarousel" class="carousel fdi-Carousel slide"> <!-- Carousel items --> <div class="carousel fdi-Carousel slide" id="eventCarousel" data-interval="0"> <ul class="carousel-inner onebyone-carosel my" > <li class="item active " > <a href="#" class="col-lg-4"><img src="http://placehold.it/250x250" class="img-responsive center-block"></a> </li> <li class="item "> <a href="#" class="col-lg-4"><img src="http://placehold.it/250x250" class="img-responsive center-block"></a> </li> <li class="item "> <a href="#" class="col-lg-4"><img src="http://placehold.it/250x250" class="img-responsive center-block"></a> </li> <li class="item "> <a href="#" class="col-lg-4"><img src="http://placehold.it/250x250" class="img-responsive center-block"></a> </li> <li class="item "> <a href="#" class="col-lg-4"><img src="http://placehold.it/250x250" class="img-responsive center-block"></a> </li> <li class="item "> <a href="#" class="col-lg-4"><img src="http://placehold.it/250x250" class="img-responsive center-block"></a> </li> </ul> <a class="left carousel-control" href="#eventCarousel" data-slide="prev"></a> <a class="right carousel-control" href="#eventCarousel" data-slide="next"></a> </div> <!--/carousel-inner--> </div><!--/myCarousel--> </div><!--/well--> </div> </div> </div>
.carousel-inner.onebyone-carosel { margin: auto; width: 90%; } .onebyone-carosel .active.left { left: -33.33%; } .onebyone-carosel .active.right { left: 33.33%; } .onebyone-carosel .next { left: 33.33%; } .onebyone-carosel .prev { left: -33.33%; } .my{ list-style:none; } .my li{ float:left; }
$(document).ready(function () { $('#myCarousel').carousel({ interval: 4000 }) $('.fdi-Carousel .item').each(function () { var next = $(this).next(); if (!next.length) { next = $(this).siblings(':first'); } next.children(':first-child').clone().appendTo($(this)); if (next.next().length > 0) { next.next().children(':first-child').clone().appendTo($(this)); } else { $(this).siblings(':first').children(':first-child').clone().appendTo($(this)); } }); });

Related: See More


Questions / Comments: