Giter Site home page Giter Site logo

jquery.switchable's People

Contributors

antife-yinyue avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

jquery.switchable's Issues

需要提供一个接口来清除效果

在实际项目中遇到一个需求,需要滚动的元素显示宽度需要随着浏览器而改变,这就要求监听 window 的 resize 事件来进一步处理,在用户改变窗口大小后,我需要重新初始化一个新的对象来处理当前显示宽度下的页面滚动效果,这时候需要清理之前对象的相关资源。

有几个问题请教一下

1.通过effect:"scrollRight"来实现动画滚动,当初始化页面之后,在默认的第一张图片往最后一张图片切换时。首先不会显示出图片,当动画结束时才会出现图片,有一个不连续的过程。

2.动画执行的过程中如果点击prev或者next会出现两张图片同时切换的情况,如果快速多次点击也会出现更多,可否添加一个属性(动画在执行过程中设置为真)来判断轮播动画是否在进行,和autoPlay的那个不一样的。

3.能否添加afterSwitch函数?

4.还有个是在var sw = $('#id').switchable({})这个里面使用onSwitch函数时有个bug(貌似是和switchTo有关),上次用的时候遇见了,等我记起来了再来提问,不过这个问题可以以sw.switchTo()这种方式解决。

望楼主解答,多谢!

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.