我有一个来自客户端的(不寻常的)请求,要求在“幻灯片”动画期间每张幻灯片之间至少有 40 像素的填充/边距。Flexslider 的默认设置是让项目相互刷新。
“itemMargin”在 2.0 中有一个新的 JQuery 选项,但它似乎只用于“轮播”设置。如果我通过 CSS 应用边距,每张幻灯片都会撞到下一张幻灯片。
无论如何要在幻灯片之间应用边距,还是这是一个不可能的选择?
这是我当前设置的选项
$(window).load(function() {
$('.home_slider').flexslider({
animation: "slide", //String: Select your animation type, "fade" or "slide"
smoothHeight: false, //{NEW} Boolean: Allow height of the slider to animate smoothly in horizontal mode
slideshow: false, //Boolean: Animate slider automatically
controlNav: false,
directionNav: true, //Boolean: Create navigation for previous/next navigation? (true/false)
prevText: "%", //String: Set the text for the "previous" directionNav item
nextText: "&",
// Carousel Options
itemMargin: 40
});