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

Having only one element active as "in-view" #128

Open
ErikTech opened this issue Aug 15, 2017 · 0 comments
Open

Having only one element active as "in-view" #128

ErikTech opened this issue Aug 15, 2017 · 0 comments

Comments

@ErikTech
Copy link

Hello, I love the library so far. I was wondeirng if the functionality exists or if it is easy to accomplish.

I wish to have only one element seen as "in-view" at a time. I was able to check if the entire element is visible using $inviewInfo.parts, which got me closer to my goal. My issue is, if I have two elements with 100% of each of them in view, if I could only somehow tag the second element as "in-view", and remove it from the first one.

I have many more than 2 elements. There may be a case where there are 3 fully visible on the viewport. Is there a way to assign the $inview to only the last element that is fully showing?

Thank you

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