原生JS无缝切换幻灯片
2017/10/29    标签: slide    无缝切换    原生js   

原生JS无缝切换幻灯片

实例:无缝切换幻灯片->

sliderFeige(dom,options)

参数

dom : //obj幻灯片DIV

options:

slideBox //obj 幻灯片内部箱子DIV

autoSlide //bool 是否自动播放

speed //num 播放的速度 毫秒

sleep //num 播放的时间间隔 毫秒

effect //string 播放的特效Linear||QuadeaseIn||QuadeaseOut||QuadeaseInOut||CubiceaseIn||CubiceaseOut||CubiceaseInOut||QuarteaseIn||QuarteaseOut||QuarteaseInOut||QuinteaseIn||QuinteaseOut||QuinteaseInOut||SineeaseIn||SineeaseOut||SineeaseInOut||ExpoeaseIn||ExpoeaseOut||ExpoeaseInOut||CirceaseIn||CirceaseOut||CirceaseInOut||ElasticeaseIn||ElasticeaseOut||ElasticeaseInOut||BackeaseIn||BackeaseOut||BackeaseInOut||BounceeaseIn||BounceeaseOut||BounceeaseInOut||


{slideBox:document.getElementById('slider1').children[0].children[0],autoSlide:true,speed:500,effect:'Linear'}