if the slidesPerView I set is 1.2, the initialslide initializer will not take effect. If you comment out the slidesPerView, the setting of the initialslide will take effect. I need both of these attributes. How to solve the problem
?if the slidesPerView I set is 1.2, the initialslide initializer will not take effect. If you comment out the slidesPerView, the setting of the initialslide will take effect. I need both of these attributes. How to solve the problem
?mine is like this. The problem has been solved
< script >
var mySwiper = new Swiper('.swiper-container', {
// autoplay: 5000,//
// loop: true,
initialSlide: 0,
slidesPerView: 4,
observer: true,
observeParents: true,
nextButton: '.swiper-button-next',
prevButton: '.swiper-button-prev',
})
//
setTimeout(() => {
mySwiper.slideTo(0, 50, false);
}, 50);
</script>
I have the same problem. Have you solved it?
vue using swiper import Swiper from swiper ; methods: { __init_swiper: function () { let swiper = new Swiper( -sharpswiper_container , { autoplay: { disableOnInteraction: false, delay: ...
subject https: idangero.us swiper de. I found this package, which can slide left and right , but I find that when I try to change the second and third slide levels, the default is 80%. If I slide to the third one to the right, he will be cut off, ...
effect to be achieved: : Settings: var mySwiper = new Swiper( .swiper-container-column , { direction: horizontal , slidesPerColumn : 2, grabCursor: true, slidesPerView: 2.5, initialSlide: 0, slidesPerColumnFill : row , c...
vue uses Swiper for carousel, but exit the component and enter the component Picture and pager do not Synchronize , and manually slide the picture , but the pager does not move ; similar to the following illustration. this.$nextTick(()...