Having only one element active as "in-view"
Opened this issue · 0 comments
ErikTech commented
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