You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
import{observe}from'sentinel-dom'constobserver=observe({elements: document.getElementsByClassName('target'),snapshots: {partiallyVisible: {thresholdY: 50,}}})observer.once('partiallyVisible',(element)=>{})observer.on('visible',(element)=>{})// default snapshots still available
The text was updated successfully, but these errors were encountered:
I suggest to introduce a stable API for the next major version 1.0.
Motivation
API
takeSnapshot(element: HTMLElement | HTMLCollection, options: SnapshotOptions): SnapshotResult
observe({ bounds?: SnapshotBounds, snapshots?: SnapshotOptions[] }): ObserverEventHandlers
Usage
Basic usage
Custom snapshots
The text was updated successfully, but these errors were encountered: