Giter Club home page Giter Club logo

Comments (8)

ProLoser avatar ProLoser commented on May 27, 2024

Set 'buildNavigation' and 'autoPlay' to false. Unfortunately this will disable the auto-rotate feature because there is no way to turn it back on. I think we may need to tweak the system so that autorotate can work without a start stop button (depending on how this is handled). Possible solutions would be A: autorotate continues until an arrow is clicked, and then stops forever or B: autorotate resumes after a longer period of time, however this may still annoy visitors. Links or events in or around the slider however may serve as replacement controls (like clicking play on a video)

from anythingslider.

amirweg avatar amirweg commented on May 27, 2024

I know you are concerned about visitors getting annoyed that slides they have selected move too soon, but in my situation I have a relatively long period between rotations and am more concerned that visitors will get bored and want to move on before the slide auto-rotates. So, for me solution B with the normal delay would be perfect.

from anythingslider.

Mottie avatar Mottie commented on May 27, 2024

Hi amirweg!

I just pushed version 1.5.6 with a new option called "autoPlayLocked". Set it to true to prevent the slide show from stopping with user interaction... it's not a very user friendly option, but since it's been requested a few times now, I've added it.

Additionally to hide the start/stop button, just add it to the CSS:

div.anythingSlider .start-stop { display: none; }

from anythingslider.

ProLoser avatar ProLoser commented on May 27, 2024

I was thinking more along the lines of a second delay timer after user interaction. If the slide animates every 5 seconds then the autorotate could resume after 10 or 15

from anythingslider.

Mottie avatar Mottie commented on May 27, 2024

Hmm, that might be a better idea :P

from anythingslider.

Mottie avatar Mottie commented on May 27, 2024

ok the latest version now has a resumeDelay option to set the time... I also fixed the start/stop button to actually stop the slideshow.

from anythingslider.

amirweg avatar amirweg commented on May 27, 2024

I tried using the autoPlayLocked/ResumeDelay solution. After clicking an arrow the animation does resume but only for the first animation, afterwards it remains stopped.

I'm not sure what method is used to create autoPlayLocked but it seems to me that the easiest solution to the original problem in to switch the code the causes the play to stop in the first place.

Thanks for you help,

Amir

from anythingslider.

Mottie avatar Mottie commented on May 27, 2024

Hi Amir!

Sorry, I swear I had it working properly before I pushed that version. It's just been updated again and should now be working properly again.

from anythingslider.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.