Skip to content
Advertisement

How to change Delay in swiper in swiper.js?

I am using swiper.js for making a slideshow of images and videos. Here i want to change delay when user click on a button. But i don’t know how to change delay in swiper or any other method to do it??

I have read documentation of swiper.js but there is no function to change delay after creating swiper object.

JSFiddle(code)

JavaScript

JS

JavaScript

Hope, you will guide me…

Advertisement

Answer

One possible approach, following advice given in this issue:

JavaScript

As you store the instance of Swiper in the variable, you can use it to modify all its settings directly. The one you need – delay – is placed in autoplay section, according to docs.

User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement