Skip to content

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

Description

@ErikTech

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

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions