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.
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.
- rootElement | Document | null
- The element used as the viewport for checking visibility. Defaults to the browser viewport when null or omitted.
- rootMarginstring
- CSS margin around the root applied before computing intersections, e.g. "10px 0px".
- thresholdnumber | 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