intersection-observer-debugger
intersection-observer-debugger copied to clipboard
A script you include during development that shows the root, target, and intersection every time an IntersectionObserver is triggered.
This is quite useful, but I don't think there is a chrome extension for it yet. Is there any plan to port it? Maybe I could provide some help too...
I wonder if it's better to have outline and outline-offset instead of the border style on the div you use to flash the rectangles?
I've put the script in the head of my html. My js code uses a class which uses intersectionobserver. Seems like it (the debugger script) doesn't fire off those purple...
im not sure if this is useful for others, but for me it seems to help figure out faster whats going on... im also not sure if you even want...