2017-04-11 23 views
0

プラグインガレリアで少し問題があります。ギャラリアオプションカルーセル:false not working

オプションカルーセル: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

は、ドキュメントによるとまだある:

You can also add options as a second argument when calling Galleria.run:http://docs.galleria.io/article/118-using-options

おそらく、もしあなたがrun()関数にオプションを渡すと、私はtは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'); 
}());