rcbyr / keen-slider

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

feat: add origin params in moveToIdx #423

Open seongminn opened 2 weeks ago

seongminn commented 2 weeks ago

issue

First off, thank you for your wonderful library.

Even though I use the origin='auto' option, I want the element to be centered when I use the moveToIdx method.

So, as the fourth parameter of the moveToIdx method, origin: 'auto' | I wrote code to center the element by adding 'center'.

What do you think about this?