How to control ionic slides transition speed

how can i controll ionic slides autoplay transition speed

@krishna123234567

Template file

<ion-slides options="data.sliderOptions" slider="data.sliderDelegate">
    <ion-slide-page ng-repeat="bgColor in data.bgColors">
      <div class="box {{bgColor}}"></div>
    </ion-slide-page>
  </ion-slides>

component file

    //some options to pass to our slider
    $scope.data.sliderOptions = {
      initialSlide: 0,
      direction: 'horizontal', //or vertical
      speed: 1000, //0.3s transition
      autoplay: 300

Using this code you can handle the speed of transition.

Hope this will help you.

1 Like