-
AuthorPosts
-
July 9, 2014 at 6:42 pm #289156
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.-
This topic was modified 11 years, 4 months ago by
trevorjohnston.
July 10, 2014 at 8:08 am #289355Hi 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,
JosueJuly 18, 2014 at 6:53 pm #293093Thanks 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?
July 23, 2014 at 10:41 pm #295164Hi!
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,
DevinMay 26, 2015 at 12:26 pm #450022hi,
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 :)
May 26, 2015 at 12:31 pm #450026Hi!
A workaround would be to use dot-control buttons instead of arrows.
Regards,
JosueMay 29, 2015 at 9:03 am #451555good idea … thanks :)
-
This topic was modified 11 years, 4 months ago by
-
AuthorPosts
- The topic ‘Content slider loop’ is closed to new replies.
