You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 ?
The text was updated successfully, but these errors were encountered:
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 acceptref
prop to get height of child.Someone would have a solution in mind for my case ?
The text was updated successfully, but these errors were encountered: