Coder Social home page Coder Social logo

swiper's Issues

增加首页或尾页回弹功能

由于采用了 Data Driven 的策略,此步骤仅需在首页或尾页的时候,改变 easing 函数,计算出合理的 offset 即可,这个也是完成度秘新版引导 DEMO #1 的前提条件。

怎么在回调事件中获取当前的滑动百分比?

swipeMoving 回调中好像只能得到事件名称, 没有其他有用的信息啊?
我需要在下一页出现50%的时候才开始执行动画, 因此需要知道当前页面和下一页的百分比, 请问有没有哪个属性能解决这个问题, 类似 Swiper 中的 progress.
前端新手, 希望作者能指点一下.

在移动设备上,click事件不触发?

例如:
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模式也不行

辛苦了作者,上面是我碰到的问题。谢谢。

改造 workflow

  • 使用 Git Flow 或 GitHub Flow
  • 结合测试代码,使用持续集成进行测试,保证代码高可用

完成 resize 事件的响应

目前 resize 事件响应为空,好像 resize 事件不需要做特殊处理,不过需要仔细确认后才行。

增加 DEMO

采用电脑端和二维码两种预览方式,电脑端用一个手机模型,初步想到的两个 DEMO 是:

  • 百度无人车招聘
  • 手机度秘的新版开场引导

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.