small-swiper
small-swiper 是一个javascript的轮播图的实现。同时支持移动端h5和PC端。当然,您也可以基于此库实现基于其它任何javascript框架的组件
small-swiper is the implementation of a JavaScript carousel graph. It supports both mobile H5 and PC. Of course, you can also implement components based on any other JavaScript framework based on this library
Routine
ES6
npm install small-swiper --save-dev
Usage method
To 0 To 1 To 2 To 3
- 1.horizontal direction
#root
window{ const swiper = root:document loop:true auto:false delayed:2000 effect:"slide" direction:"vertical" index:0 disabledHand:false { console documenttitle = "I am"+index+"page" } const btnList = document; slice}
- 2.vertical direction
#root
window{ const swiper = root:document loop:true auto:false delayed:2000 effect:"slide" direction:"vertical" index:0 { console; documenttitle = "I am"+index+"page" } }
- 3.Fade in and fade out
#root
window{ const swiper = root:document effect:"fade" loop:false auto:true direction:"horizontal" index:0 { console } }