"Media Slider Carousel BS3"
Bootstrap 3.0.0 Snippet by Mohamed Tahhan

<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"> <h2>Media Slider Carousel BS3</h2> </div> <div class='row'> <div class='col-md-8'> <div class="carousel slide media-carousel" id="media"> <div class="carousel-inner"> <div class="item active"> <div class="row"> <div class="col-md-4"> <a class="thumbnail" href="#"><img alt="" src="http://placehold.it/150x150"></a> </div> <div class="col-md-4"> <a class="thumbnail" href="#"><img alt="" src="http://placehold.it/150x150"></a> </div> <div class="col-md-4"> <a class="thumbnail" href="#"><img alt="" src="http://placehold.it/150x150"></a> </div> </div> </div> <div class="item"> <div class="row"> <div class="col-md-4"> <a class="thumbnail" href="#"><img alt="" src="http://placehold.it/150x150"></a> </div> <div class="col-md-4"> <a class="thumbnail" href="#"><img alt="" src="http://placehold.it/150x150"></a> </div> <div class="col-md-4"> <a class="thumbnail" href="#"><img alt="" src="http://placehold.it/150x150"></a> </div> </div> </div> <div class="item"> <div class="row"> <div class="col-md-4"> <a class="thumbnail" href="#"><img alt="" src="http://placehold.it/150x150"></a> </div> <div class="col-md-4"> <a class="thumbnail" href="#"><img alt="" src="http://placehold.it/150x150"></a> </div> <div class="col-md-4"> <a class="thumbnail" href="#"><img alt="" src="http://placehold.it/150x150"></a> </div> </div> </div> </div> <a data-slide="prev" href="#media" class="left carousel-control">‹</a> <a data-slide="next" href="#media" class="right carousel-control">›</a> </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 } /* End carousel */
$(document).ready(function() { $('#media').carousel({ pause: true, interval: false, }); });

Related: See More


Questions / Comments:

I copy all the codes into my html, css and javascript file but it is still not sliding why?

Den () - 6 years ago - Reply 0


Can this 3 slide carousel slide one unit each time with an auto slide feature in addition to the manual?

John () - 9 years ago - Reply 0


its not working with RTL websites ?

Rasha () - 10 years ago - Reply 0


anthony () - 10 years ago - Reply 0


Really cool.. but the biggest problem i c with this version and the other similar version is that the thumbs inside the slider need to be reduced in # of viewable thumbs ... say from 3 to 2 and then to 1 as the screen reduces size. the current function simply lowers one thumb under the next and you end up with 3 thumbs vertically aligned on top of each other. This is rather awkward and consumes a lot of vertical space. Would it be possible to get a revised version? Thanks for the post, its a great start.

anthony () - 10 years ago - Reply 0


you can change the #media to .media and then add hidden-xs to the css div and copy and paste it change hidden-xs to visible-xs hidden-md hidden-sm hidden-lg and make it so it's

<div class="col-xs-12 visible-xs hidden-sm hidden-md hidden-lg">
<div class="carousel slide logo-slider media">
<div class="carousel-inner">
<div class="item active">
<div class="row">
<div class="col-md-12">
<img alt="" src="./img/image.png">
</div>
</div>
</div>
<div class="item active">
<div class="row">
<div class="col-md-12">
<img alt="" src="./img/image.png">
</div>
</div>
</div>
</div>
</div>
</div>

Michael Dance () - 8 years ago - Reply 0