An open API service indexing awesome lists of open source software.

https://github.com/pomber/intersection-observer-debugger

A script you include during development that shows the root, target, and intersection every time an IntersectionObserver is triggered.
https://github.com/pomber/intersection-observer-debugger

debugger intersection-observer visualizer

Last synced: 10 months ago
JSON representation

A script you include during development that shows the root, target, and intersection every time an IntersectionObserver is triggered.

Awesome Lists containing this project

README

          

# IntersectionObserver Debugger


demo


A script you include during development that shows the root, target and intersection every time an IntersectionObserver is triggered.

## Usage

Import the script from your html:

```html

```

Or, install the dependency and import it from JS:

```bash
$ npm install intersection-observer-debugger --save-dev
```

```js
// index.js
import "intersection-observer-debugger"
```

Make sure to import it before any code that may use the IntersectionObserver constructor.

## License

MIT