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

Programmatically set progress? #14

Open
amr3k opened this issue Oct 23, 2023 · 1 comment
Open

Programmatically set progress? #14

amr3k opened this issue Oct 23, 2023 · 1 comment

Comments

@amr3k
Copy link

amr3k commented Oct 23, 2023

Hi, thanks a lot for this great library, I was wondering if it's possible to set the transition progress programmatically.. in case of a touch swipe, or hover before/after effect like this one:

GLSlideshow_progress.mp4
@amr3k
Copy link
Author

amr3k commented Oct 24, 2023

Update:
I was able to do that with:

slideshow._progress = 0.23;
slideshow._hasUpdated = true;

Of course typescript compiler was complaining so I had to @ts-ignore it 😃

However, it'd be better to expose a function that allows to set the progress value e.g function setProgress(value:number) {...}

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