Barlow1984
Barlow1984

Reputation: 205

AnythingSlider - pause when interaction made

I've finally found a carousel that I'm happy with and I'm using AnythingSlider because it's so configurable. One thing I've found from usability sites is that if there is an interaction with the slider then the slider should fall out of the auto play scrolling automatically and not move again until the user requests it too.

Is this something that is doable in AnythingSlider? I've activated pause on hover but it's not really the same thing. Just wondered if there were any other options that you guysknew about?

Thanks in advance.

Upvotes: 1

Views: 589

Answers (1)

Mottie
Mottie

Reputation: 86423

There isn't an option to stop a slide show when an interaction is made because there are many different types of interaction. You can use the API to stop the slideshow. For example, say you have an input and when that input gets focus, stop the slideshow (demo):

$('input').focus(function(){
    $('#slider').data('AnythingSlider').startStop();
});

Whatever interaction that you want to stop the slide show, just call that startStop() function. Use startStop(true) to restart it, if desired. Check out the other API functions here.

Upvotes: 1

Related Questions