Closed Fanni-Portier closed 2 months ago
You can activate the pauseAutoplayOnHover
option so that the autoplay is paused when the mouse cursor is placed over the slider.
Alternatively you can add a button that executes jQuery('#SLIDER_ID').data('rstSlider').pauseAutoplay();
and jQuery('#SLIDER_ID').data('rstSlider').playAutoplay();
on click.
Muchas gracias!!!
Sorry for asking again.
After you scroll back to a slider, autoplay is activated again. That's why I decided to use .stopAutoplay() instead of .pauseAutoplay(). Is there a way to reactivate autoplay after stopping it?
Or can I deactivate the functionality that autoplay is reactivated after scrolling?
That's why I decided to use .stopAutoplay() instead of .pauseAutoplay().
You should call .stopAutoplay(true)
to make sure the autoplay does not restart automatically after the configured autoplayRestart
delay.
Is there a way to reactivate autoplay after stopping it?
Yes, by calling .autoplay()
or .autoplay(0)
.
Is there a way to insert a button that can stop and start autoplay?
I need this feature for accessibility.