import { type dom } from "https://deno.land/x/evt@v2.4.17/mod.ts";
const { IntersectionObserver } = dom;
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.
Methods
observe(target: Element): void
takeRecords(): IntersectionObserverEntry[]
unobserve(target: Element): void