IntersectionObserver
class IntersectionObserver(options: IntersectionObserver.Options? = null, resized: (List<IntersectionObserver.Entry>, IntersectionObserver) -> Unit)(source)
Provides a way to asynchronously observe changes in the intersection of a target element with an ancestor element.
See also
Constructors
Link copied to clipboard
constructor(options: IntersectionObserver.Options? = null, resized: (List<IntersectionObserver.Entry>) -> Unit)
constructor(options: IntersectionObserver.Options? = null, resized: (List<IntersectionObserver.Entry>, IntersectionObserver) -> Unit)
Types
Link copied to clipboard
class Entry(val target: Element, val boundingClientRect: DOMRectReadOnly, val intersectionRatio: Double, val intersectionRect: DOMRectReadOnly, val isIntersecting: Boolean, val rootBounds: DOMRectReadOnly)