Skip to content

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

Notifications You must be signed in to change notification settings

matiastucci/intersection-observer-debugger

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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:

<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

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%