0.1.1 • Published 4 years ago

intersection-observer-debugger v0.1.1

Weekly downloads
4
License
MIT
Repository
github
Last release
4 years ago

IntersectionObserver Debugger

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:

<script src="https://unpkg.com/intersection-observer-debugger"></script>

Or, intall the dependency and import it from JS:

$ npm install intersection-observer-debugger --save-dev
// index.js
import "intersection-observer-debugger"

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

License

MIT