@consumidor-positivo/ts-utils - v1.13.0
    Preparing search index...

    Interface UseInViewObserverOptions

    Options for the useInViewObserver hook.

    interface UseInViewObserverOptions {
        threshold?: number;
        triggerOnce?: boolean;
    }
    Index

    Properties

    threshold?: number

    Threshold value between 0 and 1 indicating what percentage of the element should be visible. Default is 0.5 (50%).

    triggerOnce?: boolean

    If true, the callback will only be triggered once when the element enters the viewport. Default is true.