Skip to content

[Feature request] - Controlling the threshold in the Visible variants?? #250

@dwaynobaggins

Description

@dwaynobaggins

Hi,

This is a feature request 🥇

Can we add the functionality to the Visible variants (visible/visibleOnce) such that we can pass in a threshold (how much of the element as a percentage is intersecting the viewport) where (0 < n < 1) and that defines the moment the variant 'fires' , similar to how threshold works in useIntersectionObserver.

Much appreciated,
Dwayne

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions