"Simple Carousel"
Bootstrap 3.0.0 Snippet by Lorloz

<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-12"> <div id="Carousel" class="carousel slide"> <ol class="carousel-indicators"> <li data-target="#Carousel" data-slide-to="0" class="active"></li> <li data-target="#Carousel" data-slide-to="1"></li> <li data-target="#Carousel" data-slide-to="2"></li> </ol> <!-- Carousel items --> <div class="carousel-inner"> <div class="item active"> <div class="row"> <div class="col-xs-2"><a href="#" class="thumbnail"><img src="http://placehold.it/250x250" alt="Image" style="max-width:100%;"></a></div> <div class="col-xs-2"><a href="#" class="thumbnail"><img src="http://placehold.it/250x250" alt="Image" style="max-width:100%;"></a></div> <div class="col-xs-2"><a href="#" class="thumbnail"><img src="http://placehold.it/250x250" alt="Image" style="max-width:100%;"></a></div> <div class="col-xs-2"><a href="#" class="thumbnail"><img src="http://placehold.it/250x250" alt="Image" style="max-width:100%;"></a></div> <div class="col-xs-2"><a href="#" class="thumbnail"><img src="http://placehold.it/250x250" alt="Image" style="max-width:100%;"></a></div> <div class="col-xs-2"><a href="#" class="thumbnail"><img src="http://placehold.it/250x250" alt="Image" style="max-width:100%;"></a></div> </div><!--.row--> </div><!--.item--> <div class="item"> <div class="row"> <div class="col-xs-2"><a href="#" class="thumbnail"><img src="http://placehold.it/250x250" alt="Image" style="max-width:100%;"></a></div> <div class="col-xs-2"><a href="#" class="thumbnail"><img src="http://placehold.it/250x250" alt="Image" style="max-width:100%;"></a></div> <div class="col-xs-2"><a href="#" class="thumbnail"><img src="http://placehold.it/250x250" alt="Image" style="max-width:100%;"></a></div> <div class="col-xs-2"><a href="#" class="thumbnail"><img src="http://placehold.it/250x250" alt="Image" style="max-width:100%;"></a></div> <div class="col-xs-2"><a href="#" class="thumbnail"><img src="http://placehold.it/250x250" alt="Image" style="max-width:100%;"></a></div> <div class="col-xs-2"><a href="#" class="thumbnail"><img src="http://placehold.it/250x250" alt="Image" style="max-width:100%;"></a></div> </div><!--.row--> </div><!--.item--> <div class="item"> <div class="row"> <div class="col-xs-2"><a href="#" class="thumbnail"><img src="http://placehold.it/250x250" alt="Image" style="max-width:100%;"></a></div> <div class="col-xs-2"><a href="#" class="thumbnail"><img src="http://placehold.it/250x250" alt="Image" style="max-width:100%;"></a></div> <div class="col-xs-2"><a href="#" class="thumbnail"><img src="http://placehold.it/250x250" alt="Image" style="max-width:100%;"></a></div> <div class="col-xs-2"><a href="#" class="thumbnail"><img src="http://placehold.it/250x250" alt="Image" style="max-width:100%;"></a></div> <div class="col-xs-2"><a href="#" class="thumbnail"><img src="http://placehold.it/250x250" alt="Image" style="max-width:100%;"></a></div> <div class="col-xs-2"><a href="#" class="thumbnail"><img src="http://placehold.it/250x250" alt="Image" style="max-width:100%;"></a></div> </div><!--.row--> </div><!--.item--> </div><!--.carousel-inner--> </div><!--.Carousel--> </div> </div> </div><!--.container-->
body{padding-top:20px;} .carousel { margin-bottom: 0; padding: 0 30px 40px 30px; } /* The controlsy */ .carousel-control { left: -12px; height: 40px; width: 40px; background: none repeat scroll 0 0 #222222; border: 4px solid #FFFFFF; border-radius: 23px 23px 23px 23px; margin-top: 7%; } .carousel-control.right { right: -12px; } /* The indicators */ .carousel-indicators { right: 50%; top: auto; bottom: -10px; margin-right: -19px; } /* The colour of the indicators */ .carousel-indicators li { background: #cecece; } .carousel-indicators .active { background: #428bca; }
$(document).ready(function() { $('#Carousel').carousel({ interval: 5000 }) });

Related: See More


Questions / Comments:

Is there any reason why this wouldn't work in the page we have online but not my local testing page? The css and HTML work but i never get the animation or the navigation working.

Daniel Gilbert () - 8 years ago - Reply 0