画廊自动播放幻灯片?
有没有人找到一种简单的方法来让很棒的画廊自动播放?
我真的被这个困住了。
任何帮助都会很棒!
谢谢保罗
Has anyone found an easy way to get the awesome galleria gallery to auto play?
I'm really stuck on this one.
Any help would be great!
Thx Paul
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
自动播放:真
在选项中应该可以解决问题。
我的问题是,一旦开始,单击照片或拇指时它就不会停止。
autoplay: true
in the options should do the trick.
My problem is that once it's started, it does not stop when a photo or thumb is clicked.
最新版本的 Galleria 有一种新的方法来实现这一点,我不相信它会自动滚动,除非你现在隐式地强制它进行设置。
此外,点击后自动播放不会停止的问题现已在最新版本中修复。
The latest version of galleria has a new way to implement this and I do not believe it is automatically going to scroll unless you implicitly force it to with a setting now.
Also, the issue with the autoplay not stopping after a click is now fixed in the latest version.
不再适用于最新版本。见下文。
No longer works with the latest version. See below.
根据下面的文档,默认情况下您应该获得您正在寻找的行为。尝试明确设置它。
交互暂停
类型:布尔值
默认值:true
在播放期间,如果用户按缩略图或任何其他导航链接,Galleria 将停止播放。如果您不希望出现此行为,请将此选项设置为 false。
According to below documentation, by default you should be getting the behavior you are looking for. Try setting it explicitly.
pauseOnInteraction
type: Boolean
default: true
During playback, Galleria will stop the playback if the user presses thumbnails or any other navigational links. If you dont want this behaviour, set this option to false.