@spartacus/storefront
Version:
Spartacus Storefront is a package that you can include in your application, which allows you to add default storefront features.
15 lines (14 loc) • 484 B
TypeScript
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[];
}