You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|**root**|`Element`| document | false | The IntersectionObserver interface's read-only root property identifies the Element or Document whose bounds are treated as the bounding box of the viewport for the element which is the observer's target. If the root is `null`, then the bounds of the actual document viewport are used. |
151
148
|**rootMargin**|`string`| '0px' | false | Margin around the root. Can have values similar to the CSS margin property, e.g. "10px 20px 30px 40px" (top, right, bottom, left). |
152
-
|**threshold**|`number`\|`number[]`| 0 | false | Number between 0 and 1 indicating the percentage that should be visible before triggering. Can also be an array of numbers, to create multiple trigger points. |
153
-
|**trackVisibility** 🧪 |`boolean`| false | false | A boolean indicating whether this IntersectionObserver will track changes in a target’s visibility. |
149
+
|**threshold**|`number`\|`number[]`| 0 | false | Number between `0` and `1` indicating the percentage that should be visible before triggering. Can also be an array of numbers, to create multiple trigger points. |
150
+
|**trackVisibility** 🧪 |`boolean`| false | false | A boolean indicating whether this IntersectionObserver will track visibility changes on the target. |
154
151
|**delay** 🧪 |`number`| undefined | false | A number indicating the minimum delay in milliseconds between notifications from this observer for a given target. This must be set to at least `100` if `trackVisibility` is `true`. |
155
152
|**skip**|`boolean`| false | false | Skip creating the IntersectionObserver. You can use this to enable and disable the observer as needed. If `skip` is set while `inView`, the current state will still be kept. |
156
153
|**triggerOnce**|`boolean`| false | false | Only trigger the observer once. |
0 commit comments