let startElement = 2
var servicesSwiper = new Swiper ('#services', {
slidesPerView: 1,
speed: 750,
spaceBetween: 32,
virtualTranslate: true,
slideToClickedSlide: true,
draggable: true,
initialSlide: startElement
});
$(".services .swiper-wrapper").css(
"transform",
`translateX(calc(${startElement * -360 + "px"}))`
);
servicesSwiper.on("slideChangeTransitionStart", function () {
let transformValue = 0;
//if ($(window).width() >= 1024) {
transformValue = this.activeIndex * -360 + "px";
// } else {
// transformValue =
// this.activeIndex * -100 + "% - 16px *" + this.activeIndex;
// }
$(".services .swiper-wrapper").css(
"transform",
`translateX(calc(${transformValue}))`
);
});