"SlideTo" with ionic slider

Is there a way to jump to a slide by clicking in a button?
For exemple: The user is on slide 1 and goes to slide 5 clicking in a button.
Swiper has a slideTo function that would do the trick, does ionic has a similar function?

1 Like

class MyPage {

goToSlide() {
this.slider.slideTo(2, 500);

Try this. call the goToSlide() function by a button.