IIntersectionObserverInit

interface
Observers & Events

Typed options bag for configuring an IntersectionObserver — mirrors the native IntersectionObserverInit with nullable root and flexible threshold.

TypeScript

Définition

La définition TypeScript de l'interface telle que trouvée dans le code source d'origam. Cliquez sur l'icône de copie pour copier l'extrait.

typescript

API

Propriétés

Chaque propriété déclarée par cette interface, avec son type, son caractère optionnel et sa valeur par défaut.

root
Element | Document | null
The element used as the viewport for checking visibility. Defaults to the browser viewport when null or omitted.
rootMargin
string
CSS margin around the root applied before computing intersections, e.g. "10px 0px".
threshold
number | Array<number>
Single ratio or list of ratios at which the observer callback fires. Defaults to 0.

Écosystème

Utilisé par

Composants et composables qui étendent ou consomment cette interface.

Usage

Exemples

Extraits de code prêts à coller utilisant cette interface.

Passing options to OrigamLazy

html