pawelgrzybek / siema

Siema - Lightweight and simple carousel in pure JavaScript
https://pawelgrzybek.github.io/siema/
Other
3.48k stars 408 forks source link

How get pagination dots with active one? #272

Closed iaminamcom closed 4 years ago

iaminamcom commented 4 years ago

I've checked all of the examples but I couldn't find the example with dots navigation. Anyhow, I could use pagination number method but how can I get the current active one?

vti-jmurphy commented 4 years ago

You can use the currentSlide method to get the active slide. Building on the pagination example provided, you can then use this to set the correct button to "active." See: https://codepen.io/jm-via/pen/NWGYPwN

pawelgrzybek commented 4 years ago

Thanks for answering and contribution @jm-via.