任何人都可以帮助我如何在flexslider中更改事件后的过渡效果。例如,flexslider幻灯片放映的每25张幻灯片,我想更改从“淡入淡出”到“幻灯片”的过渡。有可能吗?请告诉我。
我的代码是:
$(document).ready(function(){
$('.flexslider').flexslider({
animation: "fade",
after: function(slider){
var curr_slide = slider.currentSlide + 1;
if(curr_slide % 25 == 0)
{
slider.vars.animation = "slide";
clearInterval(slider.animatedSlides);
slider.animatedSlides = setInterval(slider.animateSlides, 15000);
}
else
{
clearInterval(slider.animatedSlides);
slider.animatedSlides = setInterval(slider.animateSlides, 7000);
}
}
});
});
由于