Autoplay

<script>
    jQuery(document).ready(function($) {
        $("#slider-wrapper").transitionSlider({
            // example of autoplay options
            autoplay: {
                delay: 2500,
                disableOnInteraction: false,
                progress: false,
                pauseOnHover: false,
                reverseDirection: false
            }
        });
    });
</script>

Parameter

Type

Default

Description

autoplay

object/boolean

false

Object with autoplay parameters or boolean true to enable with default settings.

{

delay

number

3000

Delay between transitions (in ms).

disableOnInteraction

boolean

true

Set to false and autoplay will not be disabled after user interactions (swipes), it will be restarted every time after interaction.

progress

boolean

false

Enables the ability to display the visual timer of the current slide.

pauseOnHover

boolean

false

Enables that autoplay can be stopped by moving the mouse over the slide.

reverseDirection

boolean

false

Enables autoplay in reverse direction.

}

Last updated