Join us online - 19th of November
Save your spot
For AI agents: a documentation index is available at /llms.txt. Markdown versions of all pages are available by appending .md to any URL.

Interface ResizeObserver

The ResizeObserver interface reports changes to the dimensions of an Element's content or border box, or the bounding box of an SVGElement.

MDN Reference

interface ResizeObserver {
    disconnect(): void;
    observe(target: Element, options?: ResizeObserverOptions): void;
    unobserve(target: Element): void;
}
Index
  • The disconnect() method of the ResizeObserver interface unobserves all observed Element or SVGElement targets.

    MDN Reference

    Returns void

  • The unobserve() method of the ResizeObserver interface ends the observing of a specified Element or SVGElement.

    MDN Reference

    Parameters

    Returns void

Was this helpful?