Skip to content

Instantly share code, notes, and snippets.

@rdallaire
Created July 28, 2014 21:08
Show Gist options
  • Save rdallaire/6efce02ffcb8118c66dd to your computer and use it in GitHub Desktop.
Save rdallaire/6efce02ffcb8118c66dd to your computer and use it in GitHub Desktop.
$('.bxslider').bxSlider({
mode: 'slide',
onSlideAfter: function (currentSlideNumber, totalSlideQty, currentSlideHtmlObject) {
$('.active-slide').removeClass('active-slide');
$('.bxslider li').eq(currentSlideHtmlObject + 1).addClass('active-slide');
},
onSliderLoad: function () {
$('.bxslider li').eq(1).addClass('active-slide');
},
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment