@greg-md/ng-lazy-load
Version:
Lazy loading images with Angular.
14 lines (13 loc) • 679 B
TypeScript
export declare function offset(element: HTMLElement): {
top: number;
left: number;
};
export interface ViewportSettings {
container?: HTMLElement | Window;
threshold?: number;
}
export declare function aboveTheTop(element: HTMLElement, settings?: ViewportSettings): boolean;
export declare function rightOfFold(element: HTMLElement, settings?: ViewportSettings): boolean;
export declare function belowTheFold(element: HTMLElement, settings?: ViewportSettings): boolean;
export declare function leftOfBegin(element: HTMLElement, settings?: ViewportSettings): boolean;
export declare function inViewport(element: HTMLElement, settings?: ViewportSettings): boolean;