r = new Swiper('.swiper#swiper-api', {
                    slidesPerView: 'auto',
                    spaceBetween: 8,
                    centeredSlides: true,
                    effect: effect,
                    rewind: true,
                    pagination: {
                        el: '.swiper-pagination',
                        clickable: true,
                    },
                    navigation: {
                        nextEl: '.swiper-button-next',
                        prevEl: '.swiper-but