2017-04-11 91 views
0

我對插件廣場有點問題。環球免稅店選項輪播:假不工作

選項轉盤:假不工作對我來說

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