rcbyr / keen-slider

The HTML touch slider carousel with the most native feeling you will get.
https://keen-slider.io/
MIT License
4.67k stars 214 forks source link

how to `updateClasses()` after `slider.next()` #332

Closed Mark2Mark closed 1 year ago

Mark2Mark commented 1 year ago

Hi,

how can one trigger the updateClasses() when slider.next() is called?

For instance when having a keen slider with dots and autoplay. I tried all kinds of things like slider.emit(...) but can’t figure out a working way from the examples on code sandbox, nor from the documentation.

The issue is, that the autoplayed slider does not update its active dot.

Thanks so much in advance!

Mark2Mark commented 1 year ago

Oh, now i figured it out. It works. I just had the same variable name for the slider. Silly me. Sorry for the trouble!