Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

IntersectionObserver

provides a way to asynchronously observe changes in the intersection of a target element with an ancestor element or with a top-level document's viewport.

interface IntersectionObserver {
readonly root: Element | Document | null;
readonly rootMargin: string;
readonly thresholds: ReadonlyArray<number>;
disconnect(): void;
observe(target: Element): void;
takeRecords(): IntersectionObserverEntry[];
unobserve(target: Element): void;
}
var IntersectionObserver: {};

§Properties

§
readonly root: Element | Document | null
[src]
§
readonly rootMargin: string
[src]
§
readonly thresholds: ReadonlyArray<number>
[src]

§Methods

§
disconnect(): void
[src]
§
observe(target: Element): void
[src]
§
unobserve(target: Element): void
[src]