Slides callback for transition start and end


Before the Ionic update replacing the Slides which have adapted the I could access the transition start and end events by directly using the slider instance. The new inputs (e.g. ionSlideWillChange) don’t allow a callback for the transitions (whenever the slider is moving, even when the threshold was not reached and it’s moving back). The ionSlideTransitionStart etc. emitters are private and not accessible.

Is there some way/workaround to get a callback for transition start and end? I’m using Ionic 3.5.3.


I managed it by using:

ngAfterViewInit() {
  this.swiper.ionSlideTransitionStart.subscribe(() => this.ionSlideTransitionStart());
  this.swiper.ionSlideTransitionEnd.subscribe(() => this.ionSlideTransitionEnd());