Interface IInViewCallbacksMap

Callbacks available in the InView module.

interface IInViewCallbacksMap {
    destroy: undefined;
    in: IInViewCallbackArg;
    out: IInViewCallbackArg;
    props: Partial<IInViewMutableProps>;
}

Hierarchy (View Summary)

Properties

Properties

destroy: undefined

Triggered when the module is destroyed.

Fires when an element enters the viewport.

Fires when an element leaves the viewport.

props: Partial<IInViewMutableProps>

Triggered when the module's properties are updated. Receives the diff (changed keys and new values) as the first argument.