API
stopAutoplayOnInteraction
Stop autoplay when user interacts
Whether autoplay stops when the user interacts with the slider (drag, swipe, or click).
stopAutoplayOnInteraction: boolean; // default: trueExample: Stop on interaction (default)
Interact with the slider to stop autoplay:
new BlazeSlider(el, {
all: {
enableAutoplay: true,
stopAutoplayOnInteraction: true,
slidesToShow: 3,
},
});Example: Continue after interaction
Autoplay continues even after user interaction:
new BlazeSlider(el, {
all: {
enableAutoplay: true,
stopAutoplayOnInteraction: false,
slidesToShow: 3,
},
});Disabling this can be annoying for users. Use with caution.