Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
  • #20825

    hi i like to have the accordion slider stop after showing every picture one time.

    is ths possible?




    to be more precise – i have the autorotation active but i like to stop it after one cycle.



    Hi Thomas,

    I’m not sure if it can be set to stop after a single cycle or not. I’ve tagged another of the support crew who should be able to give a definite answer one way or another.




    thanks devin, looking forward to read from either one of you.



    This is a bit of a hacky solution but it will work without an error.

    Please open up /js/aviacordion-dev.js and find lines 303-306 that look like

    data.slides.filter(':eq('+(index - 1)+')').trigger("mouseleave."+ pluginNameSpace);
    index = 0;
    firstrun = true;
    current.trigger("mouseleave."+ pluginNameSpace);

    and add two slashes in front of each of those lines so that it will look like this:

    //data.slides.filter(':eq('+(index - 1)+')').trigger("mouseleave."+ pluginNameSpace);
    //index = 0;
    //firstrun = true;
    //current.trigger("mouseleave."+ pluginNameSpace);

    That’s it. I tested it and works fine. On the last slide it pauses.




    hey nick,,

    i need one step more – at the end every picture should have the same space, so everything looks like before the autorotation has started.

    i achieved this by playing around with the slashes and the simple solution is that you only need to put 2 of them infront of line 304 which is responsible for the index.

    many thanks



    Glad Nick could help and you were able to tweak it to your needs :)

    Let us know if you have any other questions or issues.



Viewing 7 posts - 1 through 7 (of 7 total)

The topic ‘disable endless repeat of accordion slider’ is closed to new replies.