Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #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.

    #289355

    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

    #293093

    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?

    #295164

    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

    #450022

    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 :)

    #450026

    Hi!

    A workaround would be to use dot-control buttons instead of arrows.

    Regards,
    Josue

    #451555

    good idea … thanks :)

Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘Content slider loop’ is closed to new replies.