我对插件Galleria有点问题。
选项carousel:false对我不起作用
(function() {
Galleria.loadTheme('./js/galleria/themes/classic/galleria.classic.min.js');
Galleria.configure({
transition: 'fade',
transitionSpeed: 3000,
carousel:false
});
Galleria.run('.galleria',{
autoplay: 4000
});
}());
但旋转木马还在那里
答案 0 :(得分:0)
根据文件:
You can also add options as a second argument when calling Galleria.run:
(http://docs.galleria.io/article/118-using-options)
这可能意味着如果您将选项传递到run()
函数,它将覆盖传递到configure()
的先前选项
请改为尝试:
(function() {
Galleria.loadTheme('./js/galleria/themes/classic/galleria.classic.min.js');
Galleria.configure({
transition: 'fade',
transitionSpeed: 3000,
carousel: false,
autoplay: 4000
});
Galleria.run('.galleria');
}());