Skip to content

Partial visibility in percentage #125

@ludovicmnji

Description

@ludovicmnji

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 ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions