"Media Slider Carousel BS3"
Bootstrap 3.0.0 Snippet by aminar

<link href="//netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//netdna.bootstrapcdn.com/bootstrap/3.0.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='col-md-8'> <div class="carousel slide media-carousel" id="media"> <div class="carousel slide media-carousel" id="eventCarousel" data-interval="0"> <div class="carousel-inner onebyone-carosel"> <div class="item active"> <div class="col-md-3"> <a class="thumbnail" href="#"><img alt="" src="http://placehold.it/150x150&text=1"></a> </div> </div> <div class="item"> <div class="col-md-3"> <a class="thumbnail" href="#"><img alt="" src="http://placehold.it/150x150&text=2"></a> </div> </div> <div class="item"> <div class="col-md-3"> <a class="thumbnail" href="#"><img alt="" src="http://placehold.it/150x150&text=3"></a> </div> </div> <div class="item"> <div class="col-md-3"> <a class="thumbnail" href="#"><img alt="" src="http://placehold.it/150x150&text=4"></a> </div> </div> <div class="item"> <div class="col-md-3"> <a class="thumbnail" href="#"><img alt="" src="http://placehold.it/150x150&text=5"></a> </div> </div> <div class="item"> <div class="col-md-3"> <a class="thumbnail" href="#"><img alt="" src="http://placehold.it/150x150&text=6"></a> </div> </div> </div> <a data-slide="prev" href="#eventCarousel" class="left carousel-control">‹</a> <a data-slide="next" href="#eventCarousel" class="right carousel-control">›</a> </div> </div> </div> </div> </div>
/* carousel */ .media-carousel { margin-bottom: 0; padding: 0 40px 30px 40px; margin-top: 30px; } /* Previous button */ .media-carousel .carousel-control.left { left: -12px; background-image: none; background: none repeat scroll 0 0 #222222; border: 4px solid #FFFFFF; border-radius: 23px 23px 23px 23px; height: 40px; width : 40px; margin-top: 30px } /* Next button */ .media-carousel .carousel-control.right { right: -12px !important; background-image: none; background: none repeat scroll 0 0 #222222; border: 4px solid #FFFFFF; border-radius: 23px 23px 23px 23px; height: 40px; width : 40px; margin-top: 30px } /* Changes the position of the indicators */ .media-carousel .carousel-indicators { right: 50%; top: auto; bottom: 0px; margin-right: -19px; } /* Changes the colour of the indicators */ .media-carousel .carousel-indicators li { background: #c0c0c0; } .media-carousel .carousel-indicators .active { background: #333333; } .media-carousel img { width: 250px; height: 100px } .carousel-inner.onebyone-carosel { margin: auto; width: 90%; } .onebyone-carosel .active.left { left: -25%; } .onebyone-carosel .active.right { left: 25%; } .onebyone-carosel .next { left: 25%; } .onebyone-carosel .prev { left: -25%; } /* End carousel */
$(document).ready(function () { $('#productsCarouselXs').carousel({ interval: 4000 }) $('#eventCarousel .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)); } if (next.next().next().length > 0) { next.next().next().children(':first-child').clone().appendTo($(this)); } else { $(this).siblings(':first').children(':first-child').clone().appendTo($(this)); } }); });

Related: See More


Questions / Comments: