File

projects/storefrontlib/layout/loading/intersection.model.ts

Index

Properties

Properties

deferLoading
deferLoading: DeferLoadingStrategy
Type : DeferLoadingStrategy
Optional
rootMargin
rootMargin: string
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: number | number[]
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[];
}

result-matching ""

    No results matching ""