Here is my site. Image slider is working fine, but I want the last number to stay on the screen. Now it is in auto play. is there anyway to stop the animation on last number?
using this js for slider.
Here is my site. Image slider is working fine, but I want the last number to stay on the screen. Now it is in auto play. is there anyway to stop the animation on last number?
using this js for slider.
Change startAutoplay() function
function startAutoplay(autoplay){
autoplayinterval=setInterval(function(){
if(autoplay == true){
slider.next();
}else{
if(current == children_number){
clearInterval(autoplayinterval);
}else{
slider.next();
}
}
},settings.pauseTime + settings.aniSpeed);
}
After that, call startAutoplay()
startAutoplay(settings.autoPlay)
Oh hey. Here's julian (creator of mostslider). Maybe I should subscript to the tag for my slider... Never thought it's used somewhere as there were no feedback messages or anything else.
I'm really sorry for not answering to your question.
I see you already got a solution. This brings me to another point for the v2.0.0 release. Add a public variable which provides the current slide and the number of slides. With this feature this task would be fairly easy. If you have more desired features, please report them in the git repo tracker.
All the best, Julian