Skip to content

How to implement an autoplay for the image gallery? #1199

@q2apro

Description

@q2apro

How to implement an autoplay for the image gallery that switches to the next element every x seconds?

I have checked the documentation. This feature seems to be missing.

Maybe an idea for a future implementation?


This would work (just need to add a button to trigger the interval):

setInterval( function() { $('.mfp-arrow-right').click() }, 5000);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions