projects/storefrontlib/layout/loading/intersection.model.ts
Properties |
|
| deferLoading |
deferLoading:
|
Type : DeferLoadingStrategy
|
| Optional |
| rootMargin |
rootMargin:
|
Type : string
|
| Optional |
|
The root margin effects when an element intersects, an increased margin will faster intersects the element with the view port. |
| threshold |
threshold:
|
Type : number | number[]
|
| Optional |
|
Indicate at what percentage of the target's visibility the observer's callback should be executed. |
import { DeferLoadingStrategy } from '@spartacus/core';
export interface IntersectionOptions {
deferLoading?: DeferLoadingStrategy;
/**
* The root margin effects when an element intersects, an increased
* margin will faster intersects the element with the view port.
*/
rootMargin?: string;
/**
* Indicate at what percentage of the target's visibility
* the observer's callback should be executed.
*/
threshold?: number | number[];
}