Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
q2apro opened this issue Aug 18, 2023 · 0 comments
Open

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

q2apro opened this issue Aug 18, 2023 · 0 comments

Comments

@q2apro
Copy link

q2apro commented Aug 18, 2023

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);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant