优化 carousel 轮播组件动画效果

优化轮播组件动画效果
pull/1381/head
贤心 2023-09-20 13:28:20 +08:00 committed by GitHub
commit 4ad4766ebd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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)