I've tried to create multiple items carousel using bootstrap. My problem is it moves all 3 items at ones instead just one. Please see demo here:
http://plnkr.co/edit/Fl0HZaU5x5ZkPEVo87u3?p=preview
$('#myCarousel').carousel({
interval: 10000
})
console.log($('.item'))
$('.item').each(function() {
var next = $(this).next();
console.log(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));
}
});