jQuery 循环“结束”回调并手动前进
我正在尝试使用 jQuery 循环插件手动推进幻灯片演示。但是,我想在到达结尾时淡出整个幻灯片,即在查看最后一张幻灯片时,单击“下一步”并淡出。
似乎“结束”回调函数仅在自动前进时才起作用。
有什么建议吗?
I'm trying to use the jQuery cycle plugin to manually advance a slideshow presentation. However, I want to fade out the entire slideshow when the end is reached, i.e. when viewing the last slide, click next and fade out.
Seems like the "end" callback function only works when it's automatically advancing.
Any suggestions?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我以前也遇到过这个问题。这是一个非常好的方法:
您可以在这里看到它的工作原理: http://jsfiddle.net/Nfpr2 /14/
I've had this problem before too. This is a pretty good way to do it:
You can see it working here: http://jsfiddle.net/Nfpr2/14/
我也遇到过这个问题,但我必须确保用户已经查看了所有幻灯片,因此我对 Wes 的代码做了一些更改。
您可以在这里尝试:http://jsfiddle.net/revagomes/RQEeN/
I've had this problem too but I had to be sure that the user had viewed all the slides so I made some changes on Wes' code.
You can try it here: http://jsfiddle.net/revagomes/RQEeN/