Ionic 3 image slider autoplay works well, but when I slide the image manually the autoplay stops working. Below is my ionic 3 code. I am really stuck here..
slideData = [{ image: "../../assets/img1.jpg" },{ image: "../../assets/img2.jpg" },{ image: "../../assets/img3.jpg" }]
html code is as below
<ion-slides class="slide-css" autoplay="100" loop="true" speed="100" pager="true" autoplayDisableOnInteraction = "false">
<ion-slide *ngFor="let slide of slideData">
<img src="{{slide.image}}" />
</ion-slide>
</ion-slides>
Update:
You need to use it like this:
Note: You need to remove
autoplayDisableOnInteraction = "false"
onhtml
page.Old Answer:
You can use
autoplayDisableOnInteraction = "false"
as shown below.See how it implements on Ionic
Swiper API