Skip to main content

enableAutoplay

it is a boolean value indicating whether autoplay should be enabled or not.

default

enableAutoplay: false

Example enableAutoplay: true

In this example, pagination and navigation buttons are also added, so that you can see the impact of the autoplay on them.

stopAutoplayOnInteraction is also turned off in this example (which is enabled by default) to keep the autoplay enabled.

new BlazeSlider(el, {
all: {
enableAutoplay: true, // <--
slidesToShow: 3,
stopAutoplayOnInteraction: false,
autoplayInterval: 1500,
},
})
1
2
3
4
5
6

Example enableAutoplay: false (default)

new BlazeSlider(el, {
all: {
enableAutoplay: false, // <--
slidesToShow: 3,
stopAutoplayOnInteraction: false,
autoplayInterval: 1500,
},
})
1
2
3
4
5
6