wechatui / swiper Goto Github PK
View Code? Open in Web Editor NEW为移动端而生的滑动框架,无依赖,轻盈小巧,性能极致
Home Page: http://wechatui.github.io/swiper/
为移动端而生的滑动框架,无依赖,轻盈小巧,性能极致
Home Page: http://wechatui.github.io/swiper/
android 完好, iphone 6 微信端 切换秒闪屏。
当页面内的内容比较多时,需要滚动,但是目前无法滚动,只能整屏地滑
var swpier = new Swiper();
autoplay, 应该是最基本的属性吧?
swiper怎么触发点击事件使其跳转页面
页面内的元素需要响应点击事件
自动播放,无缝循环播放,以及有几张就几个小圆点
某些场景下,需要点击某个icon、文字等才触发下一屏的动作,目前没有这个方法
Quote: "滑动距离阀值"
swiper.on('swiped', function(prev, current){
if (prev == 3 && current == 3) {
swiper.go(0); // active 没有正确添加到 0 上,必须手动修改
}
if (prev == 0 && current == 0) {
swiper.go(3); // 正常
}
});
目前swiper只有.next()
滑动到下一页的方法,有不少应用场景需要主动滑动到某一页,所以希望添加.go(index)
方法
之前clone的项目,src目录下有一个index.js和一个util.js,现在都变成了swiper.js,历史版本里也没找到。很奇怪。
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.