-
Notifications
You must be signed in to change notification settings - Fork 196
Closed
Description
Hi,
I would like to know if it exists a workaround to be able to handle visibility but with percentage. I know the prop minTopValue
do the job when you define height in pixels but in my context, I have different element with dynamic height to handle. In other worlds, I would like to detect visibility if 30% (for example) of my element is visible in viewport.
I tryed to use ref
prop on the component itself but it doesn't accept ref
prop to get height of child.
Someone would have a solution in mind for my case ?
pitkes22, PezCoder and shunmian
Metadata
Metadata
Assignees
Labels
No labels