I have written something for 3 buttons which add/remove a css class based on the panel active, but it doesn't seem to work, as it stops checking once I click the NEXT/PREVIOUS button.
So lets say I have 3 panels, and when I'm on panel 1 I want its corresponding button to have a black BG, on panel 2 a red bg, and panel 3 a green BG.
$(slider).anythingSlider(1, function(slider){
$('a#jiggler').addClass('active');
$('a#vr').removeClass('active');
$('a#rlc').removeClass('active');
});
$(slider).anythingSlider(2, function(slider){
$('a#vr').addClass('active');
$('a#jiggler').removeClass('active');
$('a#rlc').removeClass('active');
});
$(slider).anythingSlider(3, function(slider){
$('a#rlc').addClass('active');
$('a#vr').removeClass('active');
$('a#jiggler').removeClass('active');
});
Use the AnythingSlider onSlideComplete callback function to update your links. Do something like this (demo):
HTML
CSS
Script