jCarousel Liteを初期化するときに、リストの最初の要素に「class="active"」状態を追加できるようにしたい。プラグインを変更せずにこれにどのようにアプローチしますか?
現在の設定-
$('#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');
}
});