Search code examples
jquerycarouselcaroufredsel

Caroufredsel image slider - get the number of the visible slide


I'm using the CarouFredSel slider on one of my projects. Is there a way to get the index/number of the slide which is currently visible? I need to show something like - slide 2 of 10 and change the number accordingly when the slide is changed.

Didn't find such an option in the documentation.


Solution

  • From the documentation

    currentPosition ( fn )

    Triggering this event will return the position of the first visible item (the current position) in the callback-function or (when calling the triggerHandler-method) the return value.

    http://caroufredsel.dev7studios.com/custom-events.php