ResponsiveSlides.js
ResponsiveSlides.js copied to clipboard
How to get current slider index
It's a nice plugin, though, I need to get the current active slide, and not sure how it can be done using
after: function(){}
Thanks
The visible slide have the z-index equals to 2, so just get the <li>
with such z-index.
This example uses Jquery, and I assume the only <li>
tags are the slides ones:
$('li').each(function(index , el){
if($(el).css('z-index') == 2){
console.log(index);
}
});