pause slider when click on form

studio's Avatar

studio

03 Dec, 2012 12:26 PM

Hi Dmitry

I'm using a full width slider with autoplay. Inside each slide I have a form that the visitor might use. I'm having trouble working out how to pause the slider when the user interacts with the form inside the slide. If you could advise me on how to do this that would be great. A preview of this can be seen here: http://parlourpress.com/royalslider/

Thanks,
Chris

  1. Support Staff 1 Posted by Dmytro Semenov on 03 Dec, 2012 02:33 PM

    Dmytro Semenov's Avatar

    Hi,

    $('your-form-selector').click(function() {
         $('.royalSlider').royalSlider('stopAutoPlay');
    });
    

    ... or just enable pauseOnHover

    Dmitry

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac