Detecting Partial Item Visibility in @tanstack/react-virtual Without Intersection Observer #899
Unanswered
shivam-bit
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Yes, on instance there is range property of type |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm working with @tanstack/react-virtual and want to implement a visibility-based animation mechanism where an item is considered "visible" even if just its first few pixels are in the viewport.
Current Approach
I've been exploring ways to determine item visibility directly within the virtualization library, specifically looking for a method that:
Works natively with react-virtual
Triggers when even a small portion of an item enters the view
Provides a reliable way to track partial visibility
Specific Questions
Is there a built-in method in react-virtual to detect partial item visibility?
Can the getVirtualItems() method or associated properties provide insights into partial viewport entry?
Are there any creative approaches within the library to track this without using Intersection Observer?
Beta Was this translation helpful? Give feedback.
All reactions