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

[Question] Hide Prev/Next buttons option #474

Open
addison74 opened this issue Jun 28, 2021 · 1 comment
Open

[Question] Hide Prev/Next buttons option #474

addison74 opened this issue Jun 28, 2021 · 1 comment

Comments

@addison74
Copy link

Is it possible to hide Prev/Next buttons when the slide reaches the first/last image?

By hiding these buttons we let know the visitor it is the end of the slide. I am not using loops because this feature creates confusion. Not all people realize when is the end of a slide.

@larrynalzaro
Copy link

You can write a little code to compare getCurrentSlideCount() against getTotalSlideCount(). If they are equal that means the last slide is reached. If getCurrentSlideCount() = 1 then that pretty much tells you that it's the first slide.

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

2 participants