Closed kopitar closed 1 year ago
Solved:
<carousel ref="carousel" :per-page="1" :mouse-drag="false" :paginationEnabled="false" :autoplay="false" :loop="true" @page-change="pager"> ......
created() {
this.pageInterval = setInterval(() => {
for(let i=0; i < this.$children.length; i++) {
let c = this.$children[i].$refs.carousel;
if (typeof c != 'undefined') {
c.advancePage();
}
}
}, 5000);
},
Is there any way to make multiple carousel components autoplay/change slides at the same time? I have 8 carousel components on a single page and they are not sliding in synch.
Is there a way to disable the autoplay and instead of that programmaticaly trigger next slide on all carousel components every X seconds?
this is what i'm working with , fresh data is being fetched in intervals via websockets
Each of the 8 boxes has a carousel component :