Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- export class TeamCarousel{
- $('.carousel.carousel-multi-item.v-2 .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<3;i++) {
- next=next.next();
- if (!next.length) {
- next = $(this).siblings(':first');
- }
- next.children(':first-child').clone().appendTo($(this));
- }
- });
- }
Add Comment
Please, Sign In to add comment