【问题标题】:how to change the number of visible items in Elastislide vertical carousel如何更改 Elastislide 垂直轮播中可见项目的数量
【发布时间】:2014-04-16 14:34:03
【问题描述】:

我在这里使用 Elastislide 垂直轮播

http://tympanus.net/codrops/2012/10/29/elastislide-revised/

这是垂直的

http://tympanus.net/Development/Elastislide/index2.html

我已经更改了轮播的高度和其中的

  • 项目的高度以显示 4 个项目而不是 3,但是在单击任何导航箭头后它只会移动 3 个项目而不是 4,并更改了默认选项从3到4的js代码
    $.Elastislide.defaults = {
        // orientation 'horizontal' || 'vertical'
        orientation : 'vertical',
        // sliding speed
        speed : 500,
        // sliding easing
        easing : 'ease-in-out',
        // the minimum number of items to show. 
        // when we resize the window, this will make sure minItems are always shown 
        // (unless of course minItems is higher than the total number of elements)
        minItems : 4,
        // index of the current item (left most item of the carousel)
        start : 0,
        // click item callback
        onClick : function( el, position, evt ) { return false; },
        onReady : function() { return false; },
        onBeforeSlide : function() { return false; },
        onAfterSlide : function() { return false; }
    };
    
  • 【问题讨论】:

      标签: jquery carousel vertical-scroll elastislide


      【解决方案1】:

      你可以从这里改变它:

      minItems : 6, //or any vlue you want to show
      

      【讨论】:

        猜你喜欢
        • 2017-08-07
        • 1970-01-01
        • 2020-01-22
        • 2021-02-26
        • 1970-01-01
        • 1970-01-01
        • 2020-10-26
        • 1970-01-01
        • 2015-02-01
        相关资源
        最近更新 更多