2 回答

TA貢獻(xiàn)1796條經(jīng)驗(yàn) 獲得超7個(gè)贊
var swiper = new Swiper('.swiper-container', {
effect: 'coverflow',
grabCursor: true,
centeredSlides: true,
slidesPerView: 'auto',
coverflowEffect: {
rotate: 50,
stretch: 0,
depth: 100,
modifier: 1,
slideShadows : true,
},
pagination: {
el: '.swiper-pagination',
},
});

TA貢獻(xiàn)1806條經(jīng)驗(yàn) 獲得超8個(gè)贊
let params = {
autoplay: 3000, // 每隔n秒滑動(dòng)
loop: true, // 循環(huán)
pagination: '.swiper-pagination',
slidesPerView: 'auto', // 同時(shí)顯示的slides數(shù)量
centeredSlides: true, // 居中
spaceBetween: 8, // silde間距
effect : 'coverflow', // 3D界面顯示
coverflow: {
rotate: 35, // Y軸旋轉(zhuǎn)角度
slideShadows: false // slide陰影
}
};
添加回答
舉報(bào)