# IntersectionObserver IntersectionObserver.relativeTo(string selector, Object margins)

with Promise style call: Not supported

Mini Program plugin: Support

Use the selector to specify a node as one of the reference ranges.

# parameter

# string selector


# Object margins

Used to extend (or contract) the boundaries of the reference node layout area

attribute type Default values Required Introductions
left number no Left bound of node layout area
right number no Right bound of node layout region
top number no Upper Boundary of Node Layout Area
bottom number no Lower boundary of node layout area

# Return value

# IntersectionObserver