Jquery 如何更改Elastislide垂直旋转木马中可见项目的数量
我从这里开始使用Elastislide垂直旋转木马Jquery 如何更改Elastislide垂直旋转木马中可见项目的数量,jquery,carousel,vertical-scroll,elastislide,Jquery,Carousel,Vertical Scroll,Elastislide,我从这里开始使用Elastislide垂直旋转木马 http://tympanus.net/codrops/2012/10/29/elastislide-revised/ 这是垂直的 http://tympanus.net/Development/Elastislide/index2.html 我已经改变了旋转木马的高度和里面项目的高度,以显示4个项目,而不是3个项目,但在单击任何导航箭头后,它只会继续移动3个项目,而不是4个项目,并将js代码的dafault选项从3改为4 $.Elasti
http://tympanus.net/codrops/2012/10/29/elastislide-revised/
这是垂直的
http://tympanus.net/Development/Elastislide/index2.html
我已经改变了旋转木马的高度和里面$.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; }
};
您可以从以下位置进行更改:
minItems : 6, //or any vlue you want to show