UNPKG

@thejlifex/ngx-scroll-spy

Version:

An Angular library that can spy the position of elements (inside a scrollable container) and emit the currently active (visible) element in the viewport.

11 lines (10 loc) 307 B
export interface SpyTarget { id: string; element: Element; /** * ID of the scroll-container containing the spy-target. * * When value is `undefined`, this means, spy-target belongs to the defauft scroll-spy-container (Document/Body). */ containerId?: string; }