优化轮播组件动画效果

pull/1378/head
sight 2023-09-20 11:57:52 +08:00
parent 6aa349b640
commit b1628e77a3
1 changed files with 2 additions and 2 deletions

View File

@ -299,12 +299,12 @@ layui.define(['jquery', 'lay'], function(exports){
}, 50);
}
// 移除过
// 移除过
setTimeout(function(){
elemItem.removeClass(THIS + ' ' + ELEM_PREV + ' ' + ELEM_NEXT + ' ' + ELEM_LEFT + ' ' + ELEM_RIGHT);
elemItem.eq(options.index).addClass(THIS);
that.haveSlide = false; // 解锁
}, 300);
}, 350);
// 指示器焦点
that.elemInd.find('li').eq(options.index).addClass(THIS)