5
मैंने बूटस्ट्रैप का उपयोग करके एकाधिक आइटम कैरोसेल बनाने की कोशिश की है। मेरी समस्या यह है कि यह सभी 3 वस्तुओं को सिर्फ एक के बजाय ले जाती है। कृपया डेमो यहाँ देखें:बूटस्ट्रैप कैरोसेल मल्टी आइटम एक आइटम को एक साथ ले जाएं
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));
}
});
समस्या संस्करण के साथ बूटस्ट्रैप 3.3 के साथ है 3.0 सब कुछ ठीक है –