swiper 视频无限自动轮播 无缝轮播的实现

本案例用的swiper-4.2.2.min.js 和 swiper-4.2.2.min.css

<#list videoList as video>     
    
	var mySwiper2 = new Swiper('#swiper2', {
			loop : true,
			speed : 2000,
			autoplay : {
				delay : 5000,
				stopOnLastSlide : false,
				disableOnInteraction : true,
			},
			pagination : '.swiper-pagination'
		})

		mySwiper2.el.onmouseover = function() { //鼠标进入
			mySwiper2.autoplay.stop();  //轮播停止
		}
		mySwiper2.el.onmouseout = function() { //鼠标离开
			var v_len = $("#swiper2 .swiper-slide").find("video").length
           	    for(var i = 0;i



你可能感兴趣的:(swiper 视频无限自动轮播 无缝轮播的实现)