This is an experimental technology
Because this technology's specification has not stabilized, check the compatibility table for usage in various browsers. Also note that the syntax and behavior of an experimental technology is subject to change in future versions of browsers as the specification changes.
The IntersectionObserverEntry
interface of the Intersection Observer API provides information about the intersection of a particular target with the observers root element at a particular time. Instances of this interface cannot be created, but a list of them is returned by IntersectionObserver.takeRecords()
.
IntersectionObserverEntry.boundingClientRect
Read only
DOMRectReadOnly
for the intersection observer's target.IntersectionObserverEntry.intersectionRatio
Read only
intersectionRect
to the boundingClientRect
.IntersectionObserverEntry.intersectionRect
Read only
DOMRectReadOnly
for the visible portion of the intersection observer's target.IntersectionObserverEntry.rootBounds
Read only
DOMRectReadOnly
for the intersection observer's root.IntersectionObserverEntry.time
Read only
DOMHightResTimeStamp
indicating when the intersection occurred.Specification | Status | Comment |
---|---|---|
Intersection Observer The definition of 'IntersectionObserverEntry' in that specification. | Editor's Draft | Initial definition |
Feature | Chrome | Edge | Firefox (Gecko) | Internet Explorer | Opera | Safari (WebKit) |
---|---|---|---|---|---|---|
Basic support | 51.0 | No support[1] | No support[2] | No support | ? | ? |
Feature | Android | Android Webview | Edge | Firefox Mobile (Gecko) | Firefox OS | IE Mobile | Opera Mobile | Safari Mobile | Chrome for Android |
---|---|---|---|---|---|---|---|---|---|
Basic support | No support | 51.0 | No support[1] | No support[2] | No support | No support | ? | ? | 51.0 |
[1] This feature is available since the Windows Insider Preview Build 14986.
[2] This feature is implemented since Gecko 53.0 (Firefox 53.0 / Thunderbird 53.0 / SeaMonkey 2.50) behind the preference dom.IntersectionObserver.enabled
, defaulting to false. See bug 1243846.
© 2005–2017 Mozilla Developer Network and individual contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/IntersectionObserverEntry