ruyadorno/simple-slider

Add a class to currentindex?

Closed this issue · 4 comments

How can I add a class to currentindex? Greetings.

have you tried onChange: A callback function to be invoked each time a slide changes.?

Hi, I deal with "onChange" but it affects all items and I just want to change the currentindex. Greetings.

Hi @sergioplaza I just put together a new example using onChange but this actually got me thinking that it might be valuable to export a children() or slides() method to retrieve the children 🤔

Excellent @ruyadorno! This is what I was looking for, thank you very much.