Hi,
I am using the content slider to create a text rotation, changing the last word in a headline. However, I would like to stop the loop after one rotation though all the slides.
1. Could you please tell me how to go about stopping the loop at the end of the last slide?
2. How can I use to reduce the duration of each slide to 1 sec. The minimum permitted in the setup window is 3 secs?
3. Could you tell me if any additional transition options exist besides “slide” and “fade?”
Thanks,
Trev J.
Hi Trev,
Open js/shortcodes.js and look for this (around 3861):
if( this.isAnimating || this.itemsCount < 2 )
{
return false;
}
Replace it by this:
if( this.isAnimating || this.itemsCount < 2 )
{
return false;
}
if( dir === 'next' && this.current >= this.itemsCount - 1 )
{
this._stopSlideshow();
return false;
}
Regards,
Josue
Thanks Josue. If I have more than one content slider on the page, this code edit will affect all of them, correct. I don’t suppose it’s possible to specify which slider I want it applied to, is there? Or would that require some custom work?
Hi!
Not in an easy way I can think of no. Your best route would be to ask on somewhere like stack overflow or if you want a quick and custom solution looking into a freelance developer to write a custom script for you.
Regards,
Devin
hi,
I am also trying to stop the loop and I’ve applied the code above, but how to also stop the “prev” button from looping back?
thank you :)
Hi!
A workaround would be to use dot-control buttons instead of arrows.
Regards,
Josue
good idea … thanks :)