javascript - multiple elements in one carousel page bootstrap -


i using carousel in web page, have multiple items in window each time carousel turns, amazon's recommended items section. << item1 item2 item3 item4 >> can click on items. there easy way modify bootstrap's carousel work this?

try this:

$(document).ready(function() {      $('#mycarousel').carousel({  	interval: 10000      })  });
.carousel-control {    padding-top:10%;    width:5%;  }
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css">  <script src="//ajax.googleapis.com/ajax/libs/jquery/2.1.0/jquery.min.js"></script>  <script src="//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js"></script>    <div class="container">      <div class="col-xs-12">           <h1>bootstrap 3 thumbnail slider</h1>            <div class="well">              <div id="mycarousel" class="carousel slide">                                    <!-- carousel items -->                  <div class="carousel-inner">                      <div class="item active">                          <div class="row">                              <div class="col-xs-3"><a href="#x"><img src="http://placehold.it/500x500" alt="image" class="img-responsive"></a>                              </div>                              <div class="col-xs-3"><a href="#x"><img src="http://placehold.it/500x500" alt="image" class="img-responsive"></a>                              </div>                              <div class="col-xs-3"><a href="#x"><img src="http://placehold.it/500x500" alt="image" class="img-responsive"></a>                              </div>                              <div class="col-xs-3"><a href="#x"><img src="http://placehold.it/500x500" alt="image" class="img-responsive"></a>                              </div>                          </div>                          <!--/row-->                      </div>                      <!--/item-->                      <div class="item">                          <div class="row">                              <div class="col-xs-3"><a href="#x" class="thumbnail"><img src="http://placehold.it/250x250" alt="image" class="img-responsive"></a>                              </div>                              <div class="col-xs-3"><a href="#x" class="thumbnail"><img src="http://placehold.it/250x250" alt="image" class="img-responsive"></a>                              </div>                              <div class="col-xs-3"><a href="#x" class="thumbnail"><img src="http://placehold.it/250x250" alt="image" class="img-responsive"></a>                              </div>                              <div class="col-xs-3"><a href="#x" class="thumbnail"><img src="http://placehold.it/250x250" alt="image" class="img-responsive"></a>                              </div>                          </div>                          <!--/row-->                      </div>                      <!--/item-->                      <div class="item">                          <div class="row">                              <div class="col-xs-3"><a href="#x" class="thumbnail"><img src="http://placehold.it/250x250" alt="image" class="img-responsive"></a>                              </div>                              <div class="col-xs-3"><a href="#x" class="thumbnail"><img src="http://placehold.it/250x250" alt="image" class="img-responsive"></a>                              </div>                              <div class="col-xs-3"><a href="#x" class="thumbnail"><img src="http://placehold.it/250x250" alt="image" class="img-responsive"></a>                              </div>                              <div class="col-xs-3"><a href="#x" class="thumbnail"><img src="http://placehold.it/250x250" alt="image" class="img-responsive"></a>                              </div>                          </div>                          <!--/row-->                      </div>                      <!--/item-->                  </div>                  <!--/carousel-inner--> <a class="left carousel-control" href="#mycarousel" data-slide="prev">‹</a>                    <a class="right carousel-control" href="#mycarousel" data-slide="next">›</a>              </div>              <!--/mycarousel-->          </div>          <!--/well-->      </div>  </div>


Comments

Popular posts from this blog

node.js - Mongoose: Cast to ObjectId failed for value on newly created object after setting the value -

[C++][SFML 2.2] Strange Performance Issues - Moving Mouse Lowers CPU Usage -

ios - Possible to get UIButton sizeThatFits to work? -