带有每张幻灯片过渡/持续时间的 jQuery 幻灯片
我正在寻找支持每张幻灯片超时和转换的 jQuery 幻灯片。
根据我的研究,似乎 Cycle 插件 是最合适的,因为它有相当多的选择默认过渡,我什至找到了如何从此线程设置每张幻灯片超时:
具有随机超时的 jQuery 幻灯片 (以及他们关于该主题的常见问题解答页面)
但是,我没有看到设置每张幻灯片过渡的方式,这是一个破坏者。 (如果不修改现有的插件,这似乎可能比我想要的更深入)
任何人都可以建议一种方法来完成我正在寻找的东西吗?如果有必要,我愿意重写该插件,但也许有人知道更快/更简单的方法。
提前致谢!
更新:我通过生成逗号分隔的转换列表并将它们作为 .cycle 的
fx:
选项的值传递来满足我的要求插件。作为参考,我使用上面链接的常见问题解答页面来了解每张幻灯片的计时,以及“此页面显示如何在单个幻灯片上使用多种效果。”页面用于每张幻灯片的过渡。
I am searching for a jQuery slideshow that supports per-slide timeouts and transitions.
From my research, it seems like the Cycle Plugin is the closest fit, as it has an appreciable selection of default transitions, and I've even found out how to set per-slide timeouts from this thread:
jQuery Slideshow with Random Timeouts
(as well as their FAQ pages on the subject)
However, I do not see a way of setting per-slide transitions, which is a deal breaker. (Short of maybe modifying the existing plugin, which seems like it could be getting in deeper than I'd like)
Can anyone advise on a way to accomplish what I am looking for? I am willing to rewrite the plugin if I have to, but maybe someone knows of a quicker/easier way.
Thanks in advance!
UPDATE: I managed to meet my requirements by generating a list of comma-separated transitions, and passing them as a value of the fx:
option of the .cycle
plugin. For reference, I used the FAQ page linked above for the per-slide timings, and the "This page shows how to use multiple effects on a single slideshow." page for the per-slide transitions.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我通过生成逗号分隔的转换列表并将它们作为 .cycle 插件的 fx: 选项的值传递来设法满足我的要求。作为参考,我使用上面链接的常见问题解答页面来了解每张幻灯片的计时,并且“此页面显示如何在单个幻灯片上使用多种效果。”页面,了解每张幻灯片的过渡效果。
I managed to meet my requirements by generating a list of comma-separated transitions, and passing them as a value of the fx: option of the .cycle plugin. For reference, I used the FAQ page linked above for the per-slide timings, and the "This page shows how to use multiple effects on a single slideshow." page for the per-slide transitions.
现在,使用 Cycle2 插件 就容易多了。
例如(未经测试,但从 Cycle2 站点复制):
否需要 JavaScript!
This is now a lot easier with the Cycle2 plugin.
For example (not tested, but copied from the Cycle2 site):
No javascript required!