Swiper - v12.0.3
    Preparing search index...

    Interface AutoplayOptions

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

    const swiper = new Swiper('.swiper', {
    autoplay: {
    delay: 5000,
    },
    });
    interface AutoplayOptions {
        delay?: number;
        disableOnInteraction?: boolean;
        pauseOnMouseEnter?: boolean;
        reverseDirection?: boolean;
        stopOnLastSlide?: boolean;
        waitForTransition?: boolean;
    }
    Index

    Properties

    delay?: number

    Delay between transitions (in ms). If this parameter is not specified, auto play will be disabled

    If you need to specify different delay for specific slides you can do it by using data-swiper-autoplay (in ms) attribute on slide.

    <!-- hold this slide for 2 seconds -->
    <div class="swiper-slide" data-swiper-autoplay="2000">
    3000
    
    disableOnInteraction?: boolean

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

    true
    
    pauseOnMouseEnter?: boolean

    When enabled autoplay will be paused on pointer (mouse) enter over Swiper container.

    false
    
    reverseDirection?: boolean

    Enables autoplay in reverse direction

    false
    
    stopOnLastSlide?: boolean

    Enable this parameter and autoplay will be stopped when it reaches last slide (has no effect in loop mode)

    false
    
    waitForTransition?: boolean

    When enabled autoplay will wait for wrapper transition to continue. Can be disabled in case of using Virtual Translate when your slider may not have transition

    true