fex-team / swiper Goto Github PK
View Code? Open in Web Editor NEW轻量的移动端 H5 翻页库
License: MIT License
轻量的移动端 H5 翻页库
License: MIT License
如果想禁止滑动,要怎么处理啊?
怎么运行?
采用电脑端和二维码两种预览方式,电脑端用一个手机模型,初步想到的两个 DEMO 是:
例如:
content: <button id="idbt" onclick="alert(1)"><img src="//kityminder-img.cdn.bcebos.com/01.png"
还有:
content: '<div id="iddiv" onclick="alert(2)"><img src="//kityminder-img.cdn.bcebos.com/02.png"
都不触发事件,用addEventListener模式也不行
辛苦了作者,上面是我碰到的问题。谢谢。
某个Page是个长页面,Page内需要滚动浏览,同时不影响翻页。
例如这个H5 。
目前 resize 事件响应为空,好像 resize 事件不需要做特殊处理,不过需要仔细确认后才行。
发布在 FEX 官网
如题,vue中如何使用
震惊 ,是特意不让用了么
滑动到最后一页,请求到了新的数据,怎么插入新数据?
如题
swipeMoving 回调中好像只能得到事件名称, 没有其他有用的信息啊?
我需要在下一页出现50%的时候才开始执行动画, 因此需要知道当前页面和下一页的百分比, 请问有没有哪个属性能解决这个问题, 类似 Swiper 中的 progress.
前端新手, 希望作者能指点一下.
参考了度秘 3.0 新版引导的效果,将现有的 card 翻页效果延伸成更生动的效果。
灵感来源:https://www.zhihu.com/question/50107868
这样就可以用 H5 做电子书了。
interface.ts 文件
export interface Options {
container?: HTMLElement;
data?: Page[];
debug?: boolean;
isVertical?: boolean;
isLoop?: boolean;
initIndex?: number;
keepDefaultClasses?: string[];
transition?: Transition;
}
目前缺少测试代码,稳定性无法保证。
可以参考手机度秘的开场引导,非常流畅。
你好,因为现在ios11运行css3动画有时候会有坑,所以想用js版本的滑动版本,要怎么才能编译成js源代码呢,或者能否提供一份
如题?
另外可否告知在百度的线上应用
在iPhone X上滑动幅度小的情况下,在页面回弹后未能触发swipeRestored事件,无法继续滑动。
由于采用了 Data Driven 的策略,此步骤仅需在首页或尾页的时候,改变 easing 函数,计算出合理的 offset 即可,这个也是完成度秘新版引导 DEMO #1 的前提条件。
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.