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
| children | func/node || true | Children should be either a function or a node |
57
+
| root | HTMLElement || false | The HTMLElement that is used as the viewport for checking visibility of the target. Defaults to the browser viewport if not specified or if null. |
58
+
| rootId | String || false | Unique identifier for the root element - This is used to identify the IntersectionObserver instance, so it can be reused. If you defined a root element, without adding an id, it will create a new instance for all components. |
59
+
| 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). |
60
+
| tag | String | 'div' | false | Element tag to use for the wrapping component |
61
+
| threshold | Number | 0 | false | Number between 0 and 1 indicating the the percentage that should be visible before triggering. Can also be an array of numbers, to create multiple trigger points. |
62
+
| triggerOnce | Bool | false | false | Only trigger this method once |
63
+
| onChange | Func || false | Call this function whenever the in view state changes |
64
+
| render | Func || false | Use render method to only render content when inView |
/** Number between 0 and 1 indicating the the percentage that should be visible before triggering */
24
+
/** Number between 0 and 1 indicating the the percentage that should be visible before triggering. Can also be an array of numbers, to create multiple trigger points. */
0 commit comments