Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Partial visibility in percentage #125

Closed
ludovicmnji opened this issue Aug 24, 2018 · 0 comments · May be fixed by #152
Closed

Partial visibility in percentage #125

ludovicmnji opened this issue Aug 24, 2018 · 0 comments · May be fixed by #152

Comments

@ludovicmnji
Copy link

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 ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant