For some reason snippet is not showing the exact result. Please check the fiddle
FIDDLE (clean and working version)
$('#myCarousel').carousel({
interval: 10000
})
$('.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));
}
});
#myCarousel .carousel-inner .active.left {
left: -33%;
}
#myCarousel .carousel-inner .active.right {
left: 33%;
}
#myCarousel .carousel-inner .next {
left: 33%;
}
#myCarousel .carousel-inner .prev {
left: -33%;
}
#myCarousel .carousel-control.left {
background-image: none;
}
#myCarousel .carousel-control.right {
background-image: none;
}
#myCarousel .carousel-inner .item {
background: white;
transition: all ease .5s;
}
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.2.2/jquery.min.js"></script>
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" rel="stylesheet" />
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script>
<div id="myCarousel" class="carousel slide">
<div class="carousel-inner">
<div class="item active">
<div class="col-xs-4">
<a href="#">
<img src="http://placehold.it/500/bbbbbb/fff&text=1" class="img-responsive">
</a>
</div>
</div>
<div class="item">
<div class="col-xs-4">
<a href="#">
<img src="http://placehold.it/500/CCCCCC&text=2" class="img-responsive">
</a>
</div>
</div>
<div class="item">
<div class="col-xs-4">
<a href="#">
<img src="http://placehold.it/500/eeeeee&text=3" class="img-responsive">
</a>
</div>
</div>
<div class="item">
<div class="col-xs-4">
<a href="#">
<img src="http://placehold.it/500/f4f4f4&text=4" class="img-responsive">
</a>
</div>
</div>
<div class="item">
<div class="col-xs-4">
<a href="#">
<img src="http://placehold.it/500/fcfcfc/333&text=5" class="img-responsive">
</a>
</div>
</div>
<div class="item">
<div class="col-xs-4">
<a href="#">
<img src="http://placehold.it/500/f477f4/fff&text=6" class="img-responsive">
</a>
</div>
</div>
</div>
<!-- Controls -->
<a class="left carousel-control" href="#myCarousel" role="button" data-slide="prev">
<span class="glyphicon glyphicon-chevron-left" aria-hidden="true"></span>
<span class="sr-only">Previous</span>
</a>
<a class="right carousel-control" href="#myCarousel" role="button" data-slide="next">
<span class="glyphicon glyphicon-chevron-right" aria-hidden="true"></span>
<span class="sr-only">Next</span>
</a>
</div>
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…