画廊选项旋转木马:假不起作用



我对插件 Galleria 有一点问题。

选项轮播: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
    });
}());

但是旋转木马仍然存在

根据文档:

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');
}());

最新更新