Replies: 1 comment
-
hi, you could implement your own autoplay function. something like this.. const gallery = new Splide()
const myAutoplay = setInterval(function(){
if(gallery.index < gallery.length - 1){
gallery.go('>')
}
else {
console.log("Autoplay finished."
clearInterval(myAutoplay);
}
}, 2000) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I'm looking for a carousel, and this one look really good and light !
I'm currently implementing it in a project for testing, but I face a problem : I can't detect when autoplay ended (so without loop)
I will test a bypass with a detection on carouseled mouved or slide active, but that's not the best approch I think.
Maybe it could be a new feature to add ?
What do you think about it ?
Beta Was this translation helpful? Give feedback.
All reactions