Interface IInViewCallbacksMap

Callbacks available in the InView module.

interface IInViewCallbacksMap {
    destroy: undefined;
    in: { element: Element };
    out: { element: Element };
    props: undefined;
}

Hierarchy (View Summary)

Properties

Properties

destroy: undefined

Triggered when the module is destroyed.

in: { element: Element }

Fires when an element enters the viewport.

out: { element: Element }

Fires when an element leaves the viewport.

props: undefined

Triggered when the module's properties are updated.