개발/js·jquery

bxslider 현재 슬라이드에 클래스 추가하기

반응형
onSlideAfter: function (currentSlideNumber, totalSlideQty, currentSlide) {
    $('.active-slide').removeClass('active-slide');
    $('.bxslider>li').eq(currentSlide + 1).addClass('active-slide')
},
onSliderLoad: function () {
    $('.bxslider>li').eq(1).addClass('active-slide')
},
반응형