jCarousel Lite를 초기화 할 때 목록의 첫 번째 요소에 'class = "active"상태를 추가 할 수 있기를 원합니다. 어떻게하면 플러그인을 수정하지 않고도이 문제에 접근 할 수 있습니까?jCarousel Lite의 첫 번째 항목에 활성 상태 추가
현재 설정 - 사전에
$('#viewport').jCarouselLite({
speed: 500,
visible: 3,
scroll: 1,
start: 0, // Just for testing purposes
circular: true,
btnNext: '#next',
btnPrev: '#previous',
beforeStart: function(a) {
$(a[0]).animate({opacity: .5}, 250).toggleClass('active');
},
afterEnd: function(a) {
$(a[0]).animate({opacity: 1}, 500).toggleClass('active');
}
});
감사합니다. 기능이 내장 될 때까지해야합니다. –