我有一个am滑块,并且正在将活动类添加到活动幻灯片中,但是我注意到,在2-3秒的延迟后,活动类被添加到幻灯片中。这是我的密码
jQuery('.banner_slider').bxSlider({
infiniteLoop: true,
hideControlOnEnd: true,
adaptiveHeight : true,
useCSS: false,
speed: 2000,
pause: 8000,
mode: 'fade',
controls:false,
autoDelay: 2800,
onSliderLoad: function(){
jQuery('.banner_slider .slide_banner').eq(0).addClass('active-slide');
jQuery("img.firstanimatedphone").animate({ opacity: 1},2000);
jQuery("img.firstanimatedphone").addClass('slideInRight');
elementsmoving();
},
onSlideAfter: function (currentSlideNumber, totalSlideQty, currentSlideHtmlObject) {
jQuery('.active-slide').removeClass('active-slide');
jQuery('.banner_slider .slide_banner').eq(currentSlideHtmlObject).addClass('active-slide');
jQuery("img.firstanimatedphone").animate({ opacity: 1},2000);
jQuery("img.firstanimatedphone").addClass('slideInRight');
},
auto: false
}); 你能帮我弄清楚为什么在延迟2-3秒后才添加..active幻灯片吗?
发布于 2016-01-18 07:27:49
Heey found.It来自一个叫
speed: 2000,https://stackoverflow.com/questions/34848849
复制相似问题