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 do I use a callback to tell me that I've scrolled outside of fullpage? #4502

Open
iamcanadian1973 opened this issue Dec 21, 2022 · 1 comment

Comments

@iamcanadian1973
Copy link

iamcanadian1973 commented Dec 21, 2022

Description

I have tried "onleave", but it only seems to trigger if I am scrolling from one section to another. I need a callback to trigger if you leave the last slide and scroll past all the sections into the footer.

Here is a demo: https://codepen.io/kylerumble/pen/zYLxexB

You can see that the scrollbar is set to true. And I'd like to be able to know when the page is scrolled outside of the last slide.

@alvarotrigo
Copy link
Owner

Good point!
At the moment there's no such callback.

In fact, the whole feature to scroll after fullpage.js needs some improvements too.

So far, you might want to use the alternative scrollOverflow and add all your "content outside fullpage.js" inside the last fullPage.js section. That might work for you depending on your use case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants