Closed OrangeWacko closed 11 years ago
Anyways, I wrote this and it seems to work:
jQuery('.timeline_container ul').anythingSlider({
onSlideComplete: function()
{
var slideIndex = jQuery('.timeline_container ul').data('AnythingSlider').currentPage;
jQuery('#slide-id').text(slideIndex);
}
});
var slideTotal = jQuery('.timeline_container ul').data('AnythingSlider').pages;
jQuery('#slide-total').text(slideTotal);
/////// Outputs: 1 of 4, following the index of the slide you are on.
I think this can be closed :) Unless there are better ways ot do it.
How would it be possible to add this to the slider, as description, not necessarily as navigation:
For example, my slides are:
so, what I want is to have a description below that shows on which slide number you are on from the total:
For 1st slide example: " 1 out of 3"
For 2nd slide example: " 2 out of 3"
etc.
What would be the way to achieve this?
Thanks!