如何让这个 jQuery 视差滑块进行无限循环?

发布于 2024-11-10 03:39:05 字数 300 浏览 7 评论 0原文

我正在使用这个 jquery 视差滑块,效果非常好。尽管这给我留下了很小的回旋余地来编辑我想做的任何事情。

我认为这是最简单的问题:当幻灯片到达末尾时,如何让它回到幻灯片 1,就像这个很好的例子这里

到目前为止,这是我拥有的自动滚动视差幻灯片的最佳示例。谁有更好的demo请帮忙。我已经这样做好几天了。

I'm using this jquery parallax slider that works brilliantly. Though it's leaving me with little wiggle room to edit any of what I'm looking to do.

I think this is the simplest question: When the slides reach the end how do I get it to swing back to slide 1 like this great example here.

So far this is the greatest example of a auto scrolling parallax slide I have. Anyone with a better demo please help. I have been at this for days.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

花心好男孩 2024-11-17 03:39:05

将 o.circular 设置为 false 就不会一直循环

$.fn.parallaxSlider.defaults = {
    auto            : 0,
    speed           : 1000,
    easing          : 'jswing',
    easingBg        : 'jswing',
    circular        : false,
    thumbRotation   : true
};

Set o.circular to false and it won't keep looping around

$.fn.parallaxSlider.defaults = {
    auto            : 0,
    speed           : 1000,
    easing          : 'jswing',
    easingBg        : 'jswing',
    circular        : false,
    thumbRotation   : true
};
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文