我正在使用Slider Revolution jQuery插件(不是WP插件),并在我的滑块上设置sliderType:"carousel"
。
我想在重新启动滑块时使用淡入淡出过渡,当它从最后一张幻灯片再次移到第一张时。所有过渡
我尝试在幻灯片1上设置data-transition="fade"
,但这没有用。
这如何完成?谢谢!这是我的代码:
revapi1078 = tpj("#rev_slider_1078_1").show().revolution({
sliderType:"carousel",
carousel: {
maxVisibleItems: 1,
infinity: 'on',
stretch: 'on',
fadeout: 'off',
},
horizontal_align: 'left',
jsFileLocation:"revolution/js/",
sliderLayout:"auto",
minHeight: '1496',
dottedOverlay:"none",
delay:9000,
navigation: {
keyboardNavigation:"off",
keyboard_direction: "horizontal",
mouseScrollNavigation:"off",
mouseScrollReverse:"default",
onHoverStop:"off",
touch:{
touchenabled:"off",
},
arrows: {
style:"hesperiden",
enable:true,
hide_onmobile:false,
hide_under:600,
hide_onleave:false,
hide_delay:200,
hide_delay_mobile:1200,
left: {
h_align:"left",
v_align:"center",
h_offset:30,
v_offset:0
},
right: {
h_align:"right",
v_align:"center",
h_offset:30,
v_offset:0
}
},
},
viewPort: {
enable:true,
outof:"pause",
visible_area:"80%",
presize:false
},
responsiveLevels:[1240,1024,778,480],
visibilityLevels:[1240,1024,778,480],
gridwidth: 2048,
gridheight:[600,600,500,400],
lazyType:"none",
shadow:0,
spinner:"off",
stopLoop: 'off',
stopAfterLoops: -1,
stopAtSlide: -1,
shuffle:"off",
autoHeight:"off",
hideThumbsOnMobile:"off",
hideSliderAtLimit:0,
hideCaptionAtLimit:0,
hideAllCaptionAtLilmit:0,
debugMode:false,
fallbacks: {
simplifyAll:"off",
nextSlideOnWindowFocus:"off",
disableFocusListener:false,
}
});