Optional
destroyOptional
isIf true, disables the intersection observer.
false
Optional
onCallback triggered when the element enters the viewport
Optional
onCallback triggered when the element exits the viewport
Observable element
Optional
rootThe root element used for the intersection calculation.
null
Optional
rootThe margin around the root.
'0px 0px 0px 0px'
Optional
thresholdThe threshold(s) at which to trigger the callback.
0
If true, destroys the observer instance when the element appears in the viewport