Hex Core JS
    Preparing search index...

    Type Alias ViewableObserverProps

    ViewableObserverProps: {
        onEnterAboveView?: (
            entry: IntersectionObserverEntry,
        ) => boolean | undefined | void;
        onEnterBelowView?: (
            entry: IntersectionObserverEntry,
        ) => boolean | undefined | void;
        onEnterLeftOfView?: (
            entry: IntersectionObserverEntry,
        ) => boolean | undefined | void;
        onEnterRightOfView?: (
            entry: IntersectionObserverEntry,
        ) => boolean | undefined | void;
        onEnterView?: (
            entry: IntersectionObserverEntry,
        ) => boolean | undefined | void;
        onExitAboveView?: (
            entry: IntersectionObserverEntry,
        ) => boolean | undefined | void;
        onExitBelowView?: (
            entry: IntersectionObserverEntry,
        ) => boolean | undefined | void;
        onExitLeftOfView?: (
            entry: IntersectionObserverEntry,
        ) => boolean | undefined | void;
        onExitRightOfView?: (
            entry: IntersectionObserverEntry,
        ) => boolean | undefined | void;
        onExitView?: (
            entry: IntersectionObserverEntry,
        ) => boolean | undefined | void;
        onTrigger?: (
            entry: IntersectionObserverEntry,
        ) => boolean | undefined | void;
        rateLimitMS?: number;
        rootMargin?: string;
        threshold?: number;
    } & Partial<ClassNameProps & StyleProps & ChildrenProps>

    Type Declaration

    • OptionalonEnterAboveView?: (entry: IntersectionObserverEntry) => boolean | undefined | void
    • OptionalonEnterBelowView?: (entry: IntersectionObserverEntry) => boolean | undefined | void
    • OptionalonEnterLeftOfView?: (entry: IntersectionObserverEntry) => boolean | undefined | void
    • OptionalonEnterRightOfView?: (entry: IntersectionObserverEntry) => boolean | undefined | void
    • OptionalonEnterView?: (entry: IntersectionObserverEntry) => boolean | undefined | void
    • OptionalonExitAboveView?: (entry: IntersectionObserverEntry) => boolean | undefined | void
    • OptionalonExitBelowView?: (entry: IntersectionObserverEntry) => boolean | undefined | void
    • OptionalonExitLeftOfView?: (entry: IntersectionObserverEntry) => boolean | undefined | void
    • OptionalonExitRightOfView?: (entry: IntersectionObserverEntry) => boolean | undefined | void
    • OptionalonExitView?: (entry: IntersectionObserverEntry) => boolean | undefined | void
    • OptionalonTrigger?: (entry: IntersectionObserverEntry) => boolean | undefined | void

      Callback function called any time the intersection observer is triggered. Return value indicates whether an action was performed (e.g. if the entry information is not relevant, return false). Returning nothing (undefined) is equivalent to returning true.

    • OptionalrateLimitMS?: number
    • OptionalrootMargin?: string
    • Optionalthreshold?: number