Blaze Slider
API

stopAutoplayOnInteraction

Stop autoplay when user interacts

Whether autoplay stops when the user interacts with the slider (drag, swipe, or click).

stopAutoplayOnInteraction: boolean; // default: true

Example: Stop on interaction (default)

Interact with the slider to stop autoplay:

new BlazeSlider(el, {
  all: {
    enableAutoplay: true,
    stopAutoplayOnInteraction: true,
    slidesToShow: 3,
  },
});
1
2
3
4
5
6

Example: Continue after interaction

Autoplay continues even after user interaction:

new BlazeSlider(el, {
  all: {
    enableAutoplay: true,
    stopAutoplayOnInteraction: false,
    slidesToShow: 3,
  },
});
1
2
3
4
5
6

Disabling this can be annoying for users. Use with caution.

On this page