react-on-screen icon indicating copy to clipboard operation
react-on-screen copied to clipboard

How to check if element is only Partially Visible?

Open uijaswanthi opened this issue 5 years ago • 0 comments

From the below example i understood that isVisible will return true even if div element visible partially because I added partialVisibility prop. But is there any way i can say if div element is partially visible or fully visible?

const YourApp = () => {
    return (
        <TrackVisibility partialVisibility>
            {({ isVisible }) => <ComponentToTrack />}
        </TrackVisibility>
    );
}

uijaswanthi avatar Aug 13 '19 00:08 uijaswanthi