IntersectionObserverCallback object

[Some information relates to pre-released product which may be substantially modified before it's commercially released. Microsoft makes no warranties, express or implied, with respect to the information provided here.]

This callback is invoked when there are changes to the target's (DOM element's) intersection with the root (top-level viewport).

Syntax

var callback = function(entries, observer) { // observe };
var observer = new IntersectionObserver(callback, options);

Members

The IntersectionObserverCallback object does not define any members.

Remarks

Callback parameters:

Parameter Type
entries sequence<IntersectionObserverEntry>
observer IntersectionObserver