Package-level declarations
Types
Link copied to clipboard
open class IntersectionObserver(callback: IntersectionObserverCallback, options: IntersectionObserverInit = definedExternally)
The IntersectionObserver
interface of the Intersection Observer API 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.
Link copied to clipboard
typealias IntersectionObserverCallback = (entries: ReadonlyArray<IntersectionObserverEntry>, observer: IntersectionObserver) -> Unit
Link copied to clipboard
The IntersectionObserverEntry
interface of the Intersection Observer API describes the intersection between the target element and its root container at a specific moment of transition.
Link copied to clipboard
interface IntersectionObserverInit