Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $('#myCarousel').carousel({
- interval: 4000
- });
- $('.carousel .item').each(function () {
- var next = $(this).next();
- if (!next.length) {
- next = $(this).siblings(':first');
- }
- next.children(':first-child').clone().appendTo($(this));
- for (var i = 0; i < 4; i++) {
- next = next.next();
- if (!next.length) {
- next = $(this).siblings(':first');
- }
- next.children(':first-child').clone().appendTo($(this));
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement